Conclusions

We started by creating common view types that are common for almost every project. Those views are simple in principle but powerful; we can effectively manage nested views without worrying about insufficient memory.

We learned that, by encapsulating common patterns in the render() method, we can create useful view types; in this chapter, we have seen four of them but if you are curious I encourage you to take a look at the Marionette framework, which works on top of Backbone.

Marionette includes all the views exposed here: ItemView, CollectionView, LayoutView, Regions. and other useful view types. Marionette objects behave very similarly to what we see here, so that you can easily interchange Marionette objects with those described in ...

Get Mastering Backbone.js now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.