Created

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist

Composite JS Apps With Backbone.Marionette

View gallery.js
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();
View gallery.js
1 2 3 4
MyApp.addRegions({
navigationRegion: "#navigation",
mainRegion: "#main-content"
});
View gallery.js
1
var vent = _.extend({}, Backbone.Events);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.