Basic code to initialize an App
define(['marionette'],function (Marionette) {
var MyApp = new Backbone.Marionette.Application();
MyApp.addInitializer(function(options) {
// Add initialization logic here
})
MyApp.addRegions({
mainRegion: "#content"
});
})
// Framework versions in use:
// MarionetteJS (Backbone.Marionette)
// v3.1.0
// Backbone.js 1.3.3
Looking for a solution?