Sha256: 759d277c62a813acf95d74fd5d1c9f16dd30f3afcc3610566f64f653c91a9965
Contents?: true
Size: 593 Bytes
Versions: 1
Compression:
Stored size: 593 Bytes
Contents
class App.Routers.Router extends Backbone.Router initialize: => @autoLoadClass() autoLoadClass: => # This is a good place to automatically load classes that may be dependent # on a page element, and not necessarily the route. # # For example: # # new App.Views.Nav if $('.main-nav').length > 0 # # Or, perhaps you need to load a class on every page. Do that, here, too, # like this: # new App.Views.DefaultHelpers routes: '': 'initHomePage' initHomePage: -> console.log "Welcome to this awesome site, built using Heartwood!"
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
heartwood-0.0.1 | lib/generators/templates/app/assets/javascripts/routers/router.js.coffee |