Book Image

Backbone.js Patterns and Best Practices

By : Swarnendu De
Book Image

Backbone.js Patterns and Best Practices

By: Swarnendu De

Overview of this book

Table of Contents (19 chapters)
Backbone.js Patterns and Best Practices
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Precompiling Templates on the Server Side
Index

Summary


The functionality of the Backbone router is quite simple and easy to learn. For a simple application, you will not find any problems in maintaining it. The issues will start creeping in once your application grows and your router becomes huge. In this chapter, we discussed the best practices of router management, those that you should always adhere to. We also learned about subrouting, which helps by splitting up the main router into multiple module-specific routers and dividing the tasks among them.

In the next chapter, we will discuss Backbone events, custom events, storages, and sync.