Provides a logical foundation for assembling layouts and views within Backbone. Designed to be adaptive and configurable for painless integration. Well tested, with full code coverage, in both the browser and Node.js environments.
Depends on Underscore, Backbone, and jQuery. You can swap out the dependencies with a custom configuration.
Migrating from 0.8
- Upgraded all internal dependencies.
- Batch rendering via jQuery collections has been added. Check out the
- Full on AMD support. No more shimming necessary!
rendernow returns the View instance to maintain parity with other
Backbone.Viewtutorials and plugins.
renderoverrides have been renamed to
- New method
renderViewswhich will only return nested Views and not the parent view, useful for top level layouts.
- Event bubbling has been removed.
- Named regions for selectors using the
- Greatly refactored how the
async()methods work. This allows every method of the
renderlifecycle to be asynchronous and maintain the context of the View.
Please read and follow the contribution guide before contributing.
Running the unit tests in the browser
test/index.html in your favorite browser to ensure LayoutManager works
Running the unit tests headless
Make sure you've installed
grunt-cli globally with:
[sudo] npm install grunt-cli -g
grunt inside a terminal in the project directory to run the tests in both
a headless browser and Node.js environment.