backbone-generator/templates/app_view.coffee.erb

11 lines
247 B
Plaintext
Raw Normal View History

2011-05-09 02:44:21 +00:00
class window.AppView extends Backbone.View
el: '#application'
template: JST['application/app_view']
initialize: ->
controller = new Controller({app: this})
Backbone.history.start()
render: =>
$(@el).html(@template())
this