vimi
vimi

Reputation: 110

Backbone Marionette architecture, sub Application

Please help me with Backbone.Marionette architecture. For example we have the site with difference sections, like list with products, product, search page. And all this sections have several Layouts, with many Regions and logic.

In this case we should create one general Marionette Application and several sub Application for each section. General Application should track router and starting/stoping necessary sub Application? Is that correct, or we should choose some other way?

Thanks

Upvotes: 0

Views: 1382

Answers (1)

David Sulc
David Sulc

Reputation: 25994

What I do in my Marionette book is have the sub-applciations start automatically with the main app, and each sub-application is responsible for its own routing.

You can see an example here: https://github.com/davidsulc/marionette-gentle-introduction/blob/master/assets/js/apps/contacts/contacts_app.js

Upvotes: 1

Related Questions