Sha256: 74e3524d35c170f599f5eb3155d40a7195be73e57c447b23c5ae3bb3807c16ea
Contents?: true
Size: 386 Bytes
Versions: 1
Compression:
Stored size: 386 Bytes
Contents
class <%= router_namespace %>Router extends Backbone.Router initialize: (options) -> routes: <% actions.each do |action| -%> "/<%= plural_name %>/<%= action %>": "<%= action %>" <% end -%> <% actions.each do |action| -%> <%= action %>: -> @view = new <%= "#{view_namespace}.#{action.camelize}View()" %> $("#<%= plural_name %>").html(@view.render().el) <% end -%>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rails-backbone-sp-0.0.1 | lib/generators/backbone/router/templates/router-sp.coffee |