Search⌘ K

Starting with Modules

Explore how to organize your Marionette.js application by refactoring code into modular sub-applications. Understand the strategy for separating general app code, entity modules, and sub-application modules to improve scalability and maintainability.

While building our app, we’ve simply been putting the code into index.html so far.

Refactor the code using Marionette modules

While that’s great for a small app, it won’t scale as our code base grows. So, let’s refactor our code using Marionette modules. Here's basic strategy we’ll follow: ...