Closed kahlil closed 10 years ago
Did you pass template
on an instance initialization
var view = new InputView({
template: '...'
});
or extanded a new custom view?
var CustomInputView = InputView.extend({
template: '...'
});
var view = new CustomInputView();
on an instance initialization
Then it won't work. Internal attributes like template are only mixed once base constructor is extended. You've to create custom view for that.
Attributes that can be passed along on initialization are only model
, collection
and el
– https://github.com/AmpersandJS/ampersand-view/blob/76cb498b2969511ba4aaa5620edd32f63f4652d2/ampersand-view.js#L78
OK got it, thanks.
In the ampersand example app I tried to pass this template:
without any effect.