July 9, 2012
Rivets-js is a declarative, observer-based DOM-binding facility that plays well with existing frameworks such as Backbone.js, Spine.js and Stapes.js. It aims to be lightweight (1.2KB minified and gzipped), extensible, and configurable to work with any event-driven model.Its main features are :-
An adapter is just an object that responds to subscribe, unsubscribe, read and publish. Here is a sample configuration with an adapter for using Rivets.js with Backbone.js.
To prevent data attribute collision, you can set the prefix option to something like ‘rv’ or ‘bind’ so that data attributes are prefixed like data-rv-text.
Rivets.js is easily extended by adding your own custom binding routines and formatters. Rivets.js comes bundled with a few commonly used bindings, but users are encouraged to add their own that are specific to the needs of their application
Created by Michael Richards
© 2013 jquer.in
Curated By Jay Kanakiya