will talk about several Backbone-based libraries, including Chaplin. Because they share similar thoughts and address the same problems. It’s more important to understand these abstract solutions than a speciﬁc library.
structure, is now being rebuild as an external library Focusses on the top-level structure, DRY, modularization/decoupling and memory management Open-sourced from Moviepilot.com https://github.com/chaplinjs/chaplin
controllers. Rails-like routes ﬁle Marionette “reduces your routers to nothing more then conﬁguration”, also introducing controllers. Thorax imposes conventions on top of the Backbone routers, e.g. rendering views.
rendering Backbone collections (lists of models). For example, Chaplin has a highly optimized CollectionView which renders items automatically. Templates for the container, for the list items and for an empty list
before the view is instantiated. The example app uses RequireJS to load Handlebars templates as plain text. You need to implement View#getTemplateFunction We recommend precompiled Handlebars templates e.g. with Rails asset pipeline
extensively. Cross-module communication relies completely on events. Marionette also provides Pub/Sub using app.vent plus speciﬁc EventAggregators. Layouts have their own vent, for example. Marionette and Thorax views trigger useful additional events.
don’t forget to unbind event handlers. Chaplin automatically disposes all MVC modules using the dispose method. Provides methods for safe event binding. Marionette has the BindTo mixin which allows for proper unbinding. Layouts and Views may be closed.