Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
30 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,33 @@ | ||
Kanso-Backbone | ||
-------------- | ||
|
||
Backbone.js packaged as a [Kanso](http://kan.so) module. See the test branch for example usage. | ||
Backbone.js packaged as a [Kanso](http://kan.so) module. See the test branch for example usage. | ||
|
||
### Install | ||
|
||
Add `modules` to your dependencies section in `kanso.json`. | ||
|
||
```javascript | ||
... | ||
"dependencies": { | ||
"backbone": null, | ||
... | ||
} | ||
``` | ||
|
||
Run `kanso install` to fetch the package. | ||
|
||
|
||
### Usage | ||
|
||
```javascript | ||
(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')); |