In batman.js, event handlers respond to user interactions like “click” and “submit”. You can use them to modify application state in response to those interactions.
Batman.js and Devise
Model Transactions in Batman.js
Model::transaction provides a deep-copied, “shadow-realm” version of a record which is great for rendering into edit forms. Any changes made to it can be saved (which updates the original record too), or just forgotten.
Batman.js Accessors as Methods
Batman.js is a CoffeeScript front-end MVC framework. One of its core features is accessors, which can be used like properties or methods of a Batman.Object. They can even take arguments!
Build a Blog with Batman.js
Client-Side Image Preview with Batman.js
Implementing image preview is breeze thanks to batman.js observers and JavaScript APIs.
Has Many Through in Batman.js
Batman.js doesn’t support hasManyThrough out of the box, but it can be implemented fairly easily with Set::mappedTo.
Jasmine-Friendly Batman.js Accessor Stubs
Batman.Object accessors are the bread and butter of batman.js. Stubbing them can make testing much easier.
Integrate Batman.js and Leaflet with a Custom View
batman.js views are one of the best ways to integrate other JS libraries with batman.js data structures like Batman.Object and Batman.Set. For example, you can use a custom view to display Batman.Models with leaflet.js
Getting to Know Batman.Set
Batman.Set is the array-like enumerable of batman.js. It offers observable properties (which are automatically tracked by @accessor) and useful change events.