O'Reilly logo

Full Stack Web Development with Backbone.js by Patrick Mulder

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

Chapter 11. From Backbone To Thorax

By now, the user interface of Munich Cinema has taken shape. You touched a number of patterns and plugins to build applications with Backbone.js. To simplify the way we manage JavaScript projects, we also saw different approaches on organizing a Backbone project. As last step, let’s look at a framework on top of Backbone.js where a number of previous ideas come together.

Thorax.js is an open-source framework on top of Backbone.js authored by Ryan Eastridge and Kevin Decker that combines Backbone with Handlebars and some additional helpers. Thorax.js was optimized for mobile application, but is increasingly used for single page web application as alternative to Ember or Angular. With the Thorax.js generator, you get a tool for workflow automation. Also, Thorax comes out of the box with a Layout view, a CollectionView and advanced event management.

This chapter might be interesting for you too, if you want to learn more on the Handlebars.js templating approach and view helpers.

In overview, we tackle:

  • An overview on productivity and scalability of an application
  • Thorax for better view rendering
  • Advanced interactions to select a movie

The Role of Frameworks

The philosophy of Backbone.js is based on simplicity and flexibility. As such, Backbone provides only a set of very basic components, such as Views and Collections.

While these components can be customized into any direction, we often start repeating a number of choices over and over. What we want ...

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