backbone-generator/templates/app_view.js.erb

17 lines
333 B
Plaintext
Raw Normal View History

2011-04-23 23:00:22 +00:00
var AppView = Backbone.View.extend({
el: '#application',
template: JST['application/app_view'],
initialize: function() {
_.bindAll(this, 'render');
var controller = new Controller({app: this});
Backbone.history.start();
},
render: function() {
$(this.el).html(this.template());
return this;
},
});