Closed OrKoN closed 9 years ago
This isn't possible right now. DOM is only preserved when using RenderResult#rerender
or RenderResult#revalidate
on an existing render result.
@mmun And is it hard to build a render result based on the existing DOM? I am trying to understand what is needed for this. I thought that ember fast boot is using something like that already or does it simply render the templates again even if there is html generated on the server?
It requires a significant amount of work. This is the next phase of fast boot, but it hasn't been worked on yet.
I see. @mmun, thanks for your reply.
I have the following code (based on the demo):
and in index.html:
It works but it seems to be producing new DOM elements every time I run it. As far as I understood from the Architecture.md, HtmlBars should use existing DOM elements and just update them if data changes. How to achieve this? Looks like I am missing something. Thanks for help!