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 Commands

While building an application using the plain Backbone, you will just have four components: the model, collection, view, and router. By now, we have reviewed some of the objects that Marionette adds, such as the controller and the application, and of course the different kinds of views. Each of these objects aim to reduce the boilerplate and facilitate the process of structuring your application to accomplish the concerned separation in the code, as not everything belongs to the views or the router. We now know that the controller is a perfect place to orchestrate our views, but what about the code snippets that does not belong to a view? It definitely does not make sense to put that code in the router or in the model ...

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