Backbone.js packaged as a Kanso module. See the test branch for example usage.
Add modules
to your dependencies section in kanso.json
.
...
"dependencies": {
"backbone": null,
...
}
Run kanso install
to fetch the package.
(function($, Backbone) {
// backbone can use any DOM library you like
Backbone.setDomLibrary($);
// use Backbone like a boss
...
// use require if you use the jquery kanso module
// or window.$ if you use the stock jQuery
})(require('jquery'), require('backbone'));