backbone-generator/templates/view.js.erb

12 lines
245 B
Plaintext
Raw Normal View History

2011-04-15 18:55:37 +00:00
var <%= object_name %>View = Backbone.View.extend({
template: JST['<%= underscore_name %>'],
initialize: function() {
_.bindAll(this, 'render');
},
render: function() {
$(this.el).html(this.template());
return this;
2011-04-15 18:55:37 +00:00
}
});