Skip to content

Instantly share code, notes, and snippets.

@mattd
Created December 13, 2012 15:42
Show Gist options
  • Save mattd/4277255 to your computer and use it in GitHub Desktop.
Save mattd/4277255 to your computer and use it in GitHub Desktop.
define([
'marionette',
'routers/index',
'controllers/index'
], function (Marionette, IndexRouter, IndexController) {
"use strict";
var app = new Marionette.Application();
app.addRegions({
main: '#main',
content: '#content',
primaryNav: '#primary-nav'
});
app.addInitializer(function () {
new LoginRouter({
controller: new LoginController({
region: app.main
})
});
new IndexRouter({
controller: new IndexController({
region: app.main
})
});
});
return app;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment