Sha256: 9aea8cb10b6e2ac461f742545e0536aadebb996a72b8fb9adbb2ab7af8170ba8
Contents?: true
Size: 684 Bytes
Versions: 16
Compression:
Stored size: 684 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 new App.Views.DropdownMenu if $('.dropdown-menu').length > 0 new App.Views.Pickadate routes: '': 'initHomePage' initHomePage: -> console.log "Welcome to this awesome site, built using Cambium!"
Version data entries
16 entries across 16 versions & 1 rubygems