v0.8.3
Added injectionSites and untrack shared tracked views on render.
The latest addition is injectionSites.
var ParentView = TorsoView.extend({
injectionSites: {
foo: 'fooView', //foo is injection site and 'fooView' is view.fooView
bar: 'barView'
},
template: '<div inject="foo"></div><div inject="bar"></div>'
});
You can still use attachTrackedViews and you don't have to use this new field at all. If you do use it, you can specify the view in a few ways. Direct reference, a string that specifies a view's field, or a function that returns the view. You can also pass in {view: theView, options: {shared: true}} if you want to attach a shared view.
Lastly, you can hide or show any view by doing: this.set('hide:foo', true) or this.set('hide:foo', false) which will immediately re-render the view and show or hide that view.