Title
Rivets.js — Lightweight and powerful data binding + templating solution for building modern web applications
Go Home
Description
Address
Phone Number
+1 609-831-2326 (US) | Message me
Site Icon
Rivets.js — Lightweight and powerful data binding + templating solution for building modern web applications
Page Views
0
Share
Update Time
2022-05-04 02:40:51

"I love Rivets.js — Lightweight and powerful data binding + templating solution for building modern web applications"

www.rivetsjs.com VS www.gqak.com

2022-05-04 02:40:51

RIVETS☰GuideBinder ReferenceGitHubLightweight and powerful data binding + templating solution for building modern web applications.📥Download 0.9.46.2kb minified and gzipped (includes dependencies)WHY RIVETS.JS?AgnosticRivets.js is completely agnostic about your model / controller layer and works well with existing libraries that employ an event-driven model such as Backbone.js and Stapes.js. It also ships with built-in support for plain JavaScript objects, so you can use Rivets.js right away without needing a separate model or observables library.ConfigurableFrom the event handlers to the template delimiters, the attribute prefixes to the preloading of data. It's all configurable and tunable at the application level as well as locally to individual views.MOVING PARTSBindersDescribe how your underlying data is reflected in the DOM and vice-versa. All binders create a binding that is automatically updated when model data changes or when the user interacts with the DOM.ComponentsDefine reusable views, instantiable as a custom element. Each component gets its own isolated, augmentable scope.Formatters{ item.due | fromNow | duration }Format dates, numbers, currencies and implement logic gates and conversions. Formatters work in a similar fashion to the Unix pipeline, so you can stack as many of them together as you like.Adapters viaSIGHTGLASSTeach Rivets.js how to observe and interact with different objects. Use . for plain object proterties and define a : adapter for Backbone model attributes. It's up to you. Adapters take care of observing and reading each key in a keypath.WHO IS USING RIVETS.JS?AuthorMichael Richards is a Ruby/JavaScript developer, residing in beautiful Vancouver, British Columbia.