Sha256: 04143cdcd2113970d468c73231772b68d8224bc6578fb996f3597a79fa12ed7c

Contents?: true

Size: 489 Bytes

Versions: 2

Compression:

Stored size: 489 Bytes

Contents

var <%= app_name %> = new Marionette.Application();

<%= app_name %>.addRegions({
  //Add application regions here
});

//Navigate to specific route
<%= app_name %>.navigate = function (route, options) {
  options || (options = {});
  Backbone.history.navigate(route, options);
};

//Returns current route
<%= app_name %>.getCurrentRoute = function () {
  return Backbone.history.fragment;
};

<%= app_name %>.on('initialize:after', function () {
  //Things to do after app initialize
});

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
marionette_dust-0.0.2 lib/generators/marionette_dust/install/templates/app.js
marionette_dust-0.0.1 lib/generators/marionette_dust/install/templates/app.js