I’m curious to know if HTMLBars will use the same approach as RactiveJS. It even breaks text nodes in parts to update just what really changed.
For example, if we have <p>Hello, {{name}}</p>
, it will break in:
<p>
"helo, "
"X"
"!"
</p>
to update just the second string, Although I’m not sure about the details, it could have its own drawbacks. But it seems a nice approach.
Edit: There is a gist, that I wasn’t aware of, relevant to the discussion: https://gist.github.com/wycats/5808149.