Sha256: ac7cb30dcde742f1f5f9bb866e9de12fcbc89634e1236fceaaa7490a161e0c53

Contents?: true

Size: 213 Bytes

Versions: 4

Compression:

Stored size: 213 Bytes

Contents

<%= view_namespace %> ||= {}

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rails-backbone-0.5.1 lib/generators/backbone/router/templates/view.coffee
rails-backbone-0.5.0 lib/generators/backbone/router/templates/view.coffee
rails-backbone-0.2.0 lib/generators/backbone/controller/templates/view.coffee
rails-backbone-0.1.2 lib/generators/backbone/controller/templates/view.coffee