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

Version Path
cambium-1.2.3 app/assets/javascripts/cambium/admin/routers/router.js.coffee
cambium-1.2.2 app/assets/javascripts/cambium/admin/routers/router.js.coffee
cambium-1.2.1 app/assets/javascripts/cambium/admin/routers/router.js.coffee
cambium-1.2.0 app/assets/javascripts/cambium/admin/routers/router.js.coffee
cambium-1.1.6 app/assets/javascripts/cambium/admin/routers/router.js.coffee
cambium-1.1.5 app/assets/javascripts/cambium/admin/routers/router.js.coffee
cambium-1.1.4 app/assets/javascripts/cambium/admin/routers/router.js.coffee
cambium-1.1.3 app/assets/javascripts/cambium/admin/routers/router.js.coffee
cambium-1.1.2 app/assets/javascripts/cambium/admin/routers/router.js.coffee
cambium-1.1.1 app/assets/javascripts/cambium/admin/routers/router.js.coffee
cambium-1.1.0 app/assets/javascripts/cambium/admin/routers/router.js.coffee
cambium-1.0.4 app/assets/javascripts/cambium/admin/routers/router.js.coffee
cambium-1.0.3 app/assets/javascripts/cambium/admin/routers/router.js.coffee
cambium-1.0.2 app/assets/javascripts/cambium/admin/routers/router.js.coffee
cambium-1.0.1 app/assets/javascripts/cambium/admin/routers/router.js.coffee
cambium-1.0.0 app/assets/javascripts/cambium/admin/routers/router.js.coffee