Skip to content

Instantly share code, notes, and snippets.

@jamiebuilds
Created July 22, 2014 19:43
Show Gist options
  • Select an option

  • Save jamiebuilds/7814846a9d0e98232573 to your computer and use it in GitHub Desktop.

Select an option

Save jamiebuilds/7814846a9d0e98232573 to your computer and use it in GitHub Desktop.
var app = new Marionette.Application();
app.router = new Marionette.Router();
app.router
.state('profile', {
url: 'profile',
view: profileView,
region: '.my-region',
controller: profileCtrl
})
.state('profile.settings', {
url: 'profile/settings',
view: settingsView,
region: '.whatever-selector',
controller: settingsCtrl
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment