Sha256: a547e0bb8d160ec84800b4694ff0b03fefdf7a3790c9007ba4bbfcef8982db25

Contents?: true

Size: 374 Bytes

Versions: 4

Compression:

Stored size: 374 Bytes

Contents

Class = new Marionette.Application()

#Add application regions here
Class.addRegions {}

#Navigate to specific route
Class.navigate = (route, options) ->
  options or (options = {})
  Backbone.history.navigate route, options

#Returns current route
Class.getCurrentRoute = ->
  Backbone.history.fragment

Class.on "initialize:after", ->
  #Things to do after app initialize

Version data entries

4 entries across 2 versions & 1 rubygems

Version Path
marionette_dust-0.1.0 test/lib/generators/marionette_dust/install/templates/app/assets/javascripts/app.js.coffee
marionette_dust-0.1.0 test/lib/generators/marionette_dust/scaffold_and_submodule/templates/app/assets/javascripts/app.js.coffee
marionette_dust-0.0.3 test/lib/generators/marionette_dust/install/templates/app/assets/javascripts/app.js.coffee
marionette_dust-0.0.3 test/lib/generators/marionette_dust/scaffold_and_submodule/templates/app/assets/javascripts/app.js.coffee