mikeric/rivets — pull request #253 by adjohnson916 (2013-12-31 08:25:21+00:00)
Title: support reviving bindings from pre-rendered HTML

Adds support for reviving bindings from HTML that has already been processed by Rivets. The goal is to support server-side pre-rendering, while still allowing re-binding on the client-side (see my [rivets-server](github.com/adjohnson916/rivets-server) project - I list several advantages). I'd love to see Rivets pioneer this territory - not many data-binding libraries can do this yet.

We accomplish this by adding metadata to "marker" comments, and a step in the parser that finds these then gives each binder a chance to "revive" from the information in them, usually adding "re-inflated" DOM nodes after the markers to then be parsed and bound as usual.