Sha256: 89f7e5a044966c17df85533ec9d65907845bd1ecce704de21a6e40ed68cce3da

Contents?: true

Size: 211 Bytes

Versions: 3

Compression:

Stored size: 211 Bytes

Contents

<%= view_namespace %> ||= {}

class <%= view_namespace %>.<%= @action.camelize %>View extends Backbone.View
  template: JST["<%= jst @action %>"]
       
  render: ->
    $(@el).html(@template())
    return this

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rails-backbone-0.5.4 lib/generators/backbone/router/templates/view.coffee
rails-backbone-0.5.3 lib/generators/backbone/router/templates/view.coffee
rails-backbone-0.5.2 lib/generators/backbone/router/templates/view.coffee