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

Building the layout of our application with Marionette.Layout

The final view that we need to review is the Marionette.Layout view. This view is the combination of Itemview and Region; we haven't reviewed the Marionette.Region component, but for now, it's enough to say that it's a component that will be in charge of rendering a view on its el.

So the layout works as an ItemView because it requires a template to render itself. This template can be your initial HTML divided by logical regions, such as the navigation region that will contain a view which will display the navigation section of your site, the footer view that should be displayed at the footer region, and so on. You can start by rendering your layout and then rendering the view properly ...

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