Re:Ractive.js
by rubiquity on Wednesday July 24, 2013 @12:37PM
(#6097188)
So it's data binding + templating? Why would I use this over something like Rivets.js?
[ Parent
| on HN ]
Re:Ractive.js
by rich_harris on Wednesday July 24, 2013 @12:47PM
(#6097252)
Data-binding is the most obvious feature of Ractive but there are others - easier event handling, transitions, animations, JavaScript-ish expressions within templates, server-side parsing and HTML rendering, and so on.
On the other hand, Rivets is much smaller, so if you only want the data-binding then it's a fine choice. Personally I really enjoy the freedom of writing mustaches straight into my template, rather than using data-bind attributes everywhere, but it's horses for courses.
Rivets.js can do mustache-style templating too: https://github.com/mikeric/rivets/pull/182