backbone-generator/templates/view.js.erb

12 lines
251 B
Plaintext
Raw Permalink Normal View History

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