Sha256: 5dbf9b9623e792ef25c632f5c9ce8aa2c17c819f9828a4f3c5e921c9f41314b6
Contents?: true
Size: 578 Bytes
Versions: 2
Compression:
Stored size: 578 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 if (Backbone.history) { Backbone.history.start({ pushState: true }); } });
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
marionette_dust-0.1.0 | lib/generators/md/install/templates/app.js |
marionette_dust-0.0.3 | lib/generators/md/install/templates/app.js |