TapQuo/Lungo.js — Issue #50: Injecting new Sections to DOM
Author: Schreiber-und-Freunde
Created: 2012-01-16 09:14:04+00:00
State: open

Hello,

I have the following case:

I have to inject new sections to the DOM. So I do:

```javascript
$('body').append('my section html');
lng.Boot();
lng.Router.section('my-section-id');
```

If there is no active section (at startup) everything is working good. But if there are sections and one of them is active the existing section is still visible. I have an ugly workaround for it but the transition is not very nice when doing this:

```javascript
$('body').append('my section html');
lng.Boot();
lng.Router.section('my-EXISTING-section-id');
lng.Router.section('my-NEW-section-id');
```

Probably it would be good to add a function that extends only new elements and not the whole DOM. It is strange to call lng.Boot() when the app is still running...

Do you have an idea?

Cheers
Philipp