It's a Marionette Behavior for data binding.
- Download Backbone Stickit;
- Download the
binding.js
file; - If you are using Boiler, put the
binding.js
file inside theapplication/behaviors
folder. Create thebehaviors
folder if it not exists.
Put this in your Marionette ItemView:
behaviors: [{
behaviorClass: require('behaviors/binding'), // if using webpack|browserify
bindAttr: 'name', // default attribute for automatic binding
bindings: {} // custom bindings
}]
Follow the Backbone Stickit Bindings reference.