leonidas / transparency

Transparency is a semantic template engine for the browser. It maps JSON objects to DOM elements by id, class and data-bind attributes.
http://leonidas.github.com/transparency/
MIT License
969 stars 112 forks source link

Manually added nodes are ignored on re-render #123

Open metaist opened 10 years ago

metaist commented 10 years ago

Example: http://jsfiddle.net/v6Pn5/

I use this pattern to add items to a list before a model fully exists (e.g., clicking "add item" in a todo list) and then I re-render the list once the item is persisted on the backend.

The issue might be related to #11, specifically with the instanceCache not being updated (or busted).

Any chance we can add a cache-busting option to .render?