Backbone.Marionette AMD Modules

This post describes how to create a extremly simple Backbone Marionette application using Asynchronous Module Definition or AMD provided by RequireJS. The Marionette documentation states the following: It is recommended that you divide your controller objects into smaller pieces of related functionality and have multiple routers / controllers, instead of just one giant router and controller. Although this is pretty obvious, the documentation never really shows how to achieve this. Probably modules have something to do with it, yet there’s no mention of routers of controllers....

June 27, 2014