Created by Tim Branyen @tbranyen, with help from awesome contributors
Provides a logical structure for assembling layouts with Backbone Views. Designed to be adaptive and configurable for painless integration. Well tested, with over 120 assertions and 100% code coverage!
Tested with Underscore, Backbone and jQuery. You can swap out jQuery with a custom configuration or substitute Underscore with Lo-Dash.
Refer to: http://tbranyen.github.com/backbone.layoutmanager/
Migration guide: tbranyen#184
- Refactored source to be less cryptic.
- 100% test code coverage.
- Re-wrote much of the internals.
- Performance greatly improved, especially with large lists.
- Removed
swapLayout. serializeis deprecated and replaced bydata.render(callback)is deprecated torender().done()deferreds only.- Automatically unbind
modelandcollectionevents insidecleanup. Backbone.LayoutView,Backbone.Layout, andBackbone.View(withmanageset totrue`) are now all identical.pathsis now a Stringprefix, set this to the folder where your templates live.myView.render().viewnow allows you to attachview.elafter a render for some nice one-liners.new Backbone.LayoutView({ template: "#t" }).render().view.$el.appendTo("body");