Getting Started with Backbone Marionette

Getting Started with Backbone Marionette
eBook: $17.99
Formats: PDF, PacktLib, ePub and Mobi formats
save 15%!
Print + free eBook + free PacktLib access to the book: $47.98    Print cover: $29.99
save 37%!
Free Shipping!
UK, US, Europe and selected countries in Asia.
Also available on:
Table of Contents
Sample Chapters
  • Create scalable and highly interactive web applications using one of the best frameworks for Backbone.js
  • Learn about controllers, views, modules, events, commands, and regions
  • Make the most out of Backbone Marionette by understanding its philosophy and applying it to real-life development tasks

Book Details

Language : English
Paperback : 94 pages [ 235mm x 191mm ]
Release Date : January 2014
ISBN : 1783284250
ISBN 13 : 9781783284252
Author(s) : Raymundo Armendariz, Arturo Soto
Topics and Technologies : All Books, Web Development, Open Source

Table of Contents

Chapter 1: Starting with Backbone Marionette
Chapter 2: Our First Application
Chapter 3: Marionette View Types and Their Use
Chapter 4: Managing Views
Chapter 5: Divide and Conquer – Modularizing Everything
Chapter 6: Messaging
Chapter 7: Changing and Growing
  • Chapter 1: Starting with Backbone Marionette
    • Introducing Marionette.js
      • Backbone needs Marionette.js
      • Key benefits of Marionette.js
      • Building large applications
      • Incremental use
    • Installing Marionette.js
      • Text editor
      • Web browser
      • Prerequisites
      • Getting Marionette.js
      • Documentation
    • Summary
  • Chapter 2: Our First Application
    • Introduction to what we are building
    • Setting up our development environment
    • The Backbone.Marionette.Application object
      • Backbone already has a router!
    • Summary
  • Chapter 3: Marionette View Types and Their Use
    • Marionette.View and Marionette.ItemView
      • Handling events in the views
      • UI and templates
      • Marionette.CollectionView
      • Marionette.CompositeView
    • Building the layout of our application with Marionette.Layout
    • Extending Marionette views
    • Summary
  • Chapter 4: Managing Views
    • Understanding the Marionette.Region object
    • Using the Marionette.RegionManager object
    • Using the Backbone.BabySitter object
    • Taking advantage of the Marionette.Renderer object
    • Improving the performance of the application with TemplateCache
    • Summary
  • Chapter 5: Divide and Conquer – Modularizing Everything
    • Applying the divide and conquer principle
    • Modularizing single-page applications
    • Getting started with modules
    • Splitting modules into multiple files
    • Implementing initializers and finalizers
    • Working with subapplications
    • Using the route filter
    • Memory considerations
    • Summary
  • Chapter 6: Messaging
    • Understanding the event aggregator
    • Using the event aggregator of Marionette.js
      • Making applications more extensive with an event aggregator
    • Getting started with Commands
    • Setting up the RequestResponse object
    • Summary
  • Chapter 7: Changing and Growing
    • Using AMD
      • Using the Require.js library
      • Configuring Require.js
    • Defining our application module
      • Writing the subapplications using Require.js
      • Modularizing all your components
      • Adding the text plugin
      • Structuring your files
      • Using handlebars as a template engine in Marionette
    • Summary

Raymundo Armendariz

Raymundo Armendariz  is a web developer with over nine years of experience  in developing applications for the government and different industries such as  automotive and manufacturing.

In the past two years, he has spent most of his time on frontend development with  Backbone and Marionette, and building single-page applications.

Arturo Soto

Arturo Soto is a technical architect and developer. His work focuses on developing  enterprise-level applications, especially web applications. His professional interests  include software design patterns, agile practices, and multiple technologies, such as  WCF, ASP.NET MVC, OData, Web API, HTML5, and JavaScript.

Sorry, we don't have any reviews for this title yet.

Code Downloads

Download the code and support files for this book.

Submit Errata

Please let us know if you have found any errors not listed on this list by completing our errata submission form. Our editors will check them and add them to this list. Thank you.

Sample chapters

You can view our sample chapters and prefaces of this title on PacktLib or download sample chapters in PDF format.

Frequently bought together

Getting Started with Backbone Marionette +    Drupal Multimedia =
50% Off
the second eBook
Price for both: €20.30

Buy both these recommended eBooks together and get 50% off the cheapest eBook.

What you will learn from this book

  • Install and understand the core concepts of Backbone Marionette
  • Orchestrate views with a controller object
  • Divide your application into logical independent regions
  • Manage an object's life cycle to avoid memory leaks
  • Reduce boilerplate and glue code normally needed in Backbone Development by decoupling your JavaScript applications into modules.
  • Provide structure, organization, and pattern to your Backbone code

In Detail

Backbone Marionette is a composite application library for Backbone.js that aims to simplify the construction of large-scale JavaScript applications. It is a collection of common design and implementation patterns found in the applications that we build with Backbone, and it includes pieces inspired by composite application architectures, event-driven architectures, and messaging architectures.

This guide will help you learn some key concepts that will allow you to build large-scale applications with ease. You will learn how to add new features quickly and easily using a solid and composite Backbone Marionette framework. This book is a practical guide to developing scalable applications using an incremental and modular approach with Marionette.js.

This book begins by showing you the key benefits of Marionette.js and how to set up a development environment so you can begin writing code using this framework. It then walks you through the main components of the library such as the router, controller, and application. After that, it introduces you to topics like view types and the view life cycle before moving on to more advanced topics such as modularization, enterprise messaging patterns, incremental use, and memory management.

Getting Started with Backbone Marionette contains a lot of infrastructural examples that will help you to build an application of virtually any module size. It provides you with a collection of common design and implementation patterns to break your applications into small pieces. It then wraps-up by implementing extended capabilities like asynchronous module definitions and handlebars.


This book is written with an easy-to-understand approach with the intention of giving small but concrete examples that will help you to quickly understand each component of Marionette. Follow along as we work together to build a practical application using Backbone Marionette.

Who this book is for

If you are a web application developer interested in using Backbone Marionette for a real-life project, then this book is for you. As a prerequisite, knowledge of JavaScript and a working knowledge of Backbone.js is required.

Code Download and Errata
Packt Anytime, Anywhere
Register Books
Print Upgrades
eBook Downloads
Video Support
Contact Us
Awards Voting Nominations Previous Winners
Judges Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software
Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software