O'Reilly logo

Getting Started with Backbone Marionette by Arturo Soto, Raymundo Armendariz

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Getting started with modules

 

"Beauty of style and harmony and grace and good rhythm depends on simplicity."

 
 -- Plato

By understanding the concept of divide and conquer, we should agree that the modularization of code is tremendously important. Modules are small, simple, and well-encapsulated packages that have a singular focus with well-defined functions; they can be used in conjunction with other modules to create an entire system. In Marionette.js, a module provides a high-level piece of functionality and manages objects that really provide implementation details.

Let's define a module with no functionality to continue with the examples from the book store, where we will create the module that will contain the cart and order history subapplications: ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required