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

Version Path
cambium-1.3.2 lib/generators/templates/app/assets/javascripts/routers/router.js.coffee
cambium-1.3.1 lib/generators/templates/app/assets/javascripts/routers/router.js.coffee
cambium-1.3.0 lib/generators/templates/app/assets/javascripts/routers/router.js.coffee
cambium-1.2.3 lib/generators/templates/app/assets/javascripts/routers/router.js.coffee
cambium-1.2.2 lib/generators/templates/app/assets/javascripts/routers/router.js.coffee
cambium-1.2.1 lib/generators/templates/app/assets/javascripts/routers/router.js.coffee
cambium-1.2.0 lib/generators/templates/app/assets/javascripts/routers/router.js.coffee
cambium-1.1.6 lib/generators/templates/app/assets/javascripts/routers/router.js.coffee
cambium-1.1.5 lib/generators/templates/app/assets/javascripts/routers/router.js.coffee
cambium-1.1.4 lib/generators/templates/app/assets/javascripts/routers/router.js.coffee
cambium-1.1.3 lib/generators/templates/app/assets/javascripts/routers/router.js.coffee
cambium-1.1.2 lib/generators/templates/app/assets/javascripts/routers/router.js.coffee
cambium-1.1.1 lib/generators/templates/app/assets/javascripts/routers/router.js.coffee
cambium-1.1.0 lib/generators/templates/app/assets/javascripts/routers/router.js.coffee
cambium-1.0.4 lib/generators/templates/app/assets/javascripts/routers/router.js.coffee
cambium-1.0.3 lib/generators/templates/app/assets/javascripts/routers/router.js.coffee
cambium-1.0.2 lib/generators/templates/app/assets/javascripts/routers/router.js.coffee
cambium-1.0.1 lib/generators/templates/app/assets/javascripts/routers/router.js.coffee
cambium-1.0.0 lib/generators/templates/app/assets/javascripts/routers/router.js.coffee
cambium-0.3.0 lib/generators/cambium/templates/app/assets/javascripts/backbone/routers/router.js.coffee