Last active
December 20, 2015 16:08
-
-
Save pewniak747/6158842 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Application = new Marionette.Application | |
| # this will replace your mainLayout | |
| Application.addRegions | |
| mainRegion: 'body' | |
| Application.on 'initialize:after', -> | |
| Backbone.history.start() | |
| # OtherView definition | |
| Application.module 'Views.Submodule', (Submodule, Application, Backbone, Marionete, $, _) -> | |
| class Submodule.OtherView extends Marionette.ItemView | |
| Application.start() | |
| # somewhere in a router | |
| Application.mainRegion.show(new Application.Submodule.OtherView) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment