public
Created

Composite JS Apps With Backbone.Marionette

  • Download Gist
initializer.js
JavaScript
1 2 3 4 5 6 7 8 9 10 11 12 13
// create your application instance
MyApp = new Backbone.Marionette.Application();
 
MyApp.addInitializer(function(){
// do stuff here, to kick off your application
});
 
MyApp.addInitializer(function(){
// more start up stuff here
});
 
// run all of the initializers!
MyApp.start();
region.js
JavaScript
1 2 3 4
MyApp.addRegions({
navigationRegion: "#navigation",
mainRegion: "#main-content"
});
vent.js
JavaScript
1
var vent = _.extend({}, Backbone.Events);

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.