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
. serialize
is deprecated and replaced bydata
.render(callback)
is deprecated torender().done()
deferreds only.- Automatically unbind
model
andcollection
events insidecleanup
. Backbone.LayoutView,
Backbone.Layout, and
Backbone.View(with
manageset to
true`) are now all identical.paths
is now a Stringprefix
, set this to the folder where your templates live.myView.render().view
now allows you to attachview.el
after a render for some nice one-liners.new Backbone.LayoutView({ template: "#t" }).render().view.$el.appendTo("body");