Sha256: f341c8ae022f6654866c9cf7c56aa6271743d19677d50baf421d9e92e59f48bb
Contents?: true
Size: 595 Bytes
Versions: 25
Compression:
Stored size: 595 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 Cambium!"
Version data entries
25 entries across 25 versions & 1 rubygems