Re:Why I switched to Spine.js
by dclaysmith on Monday May 21, 2012 @09:25AM
(#4002700)
In backbone, I will create a new Router for each page (though sometimes you might reuse the same router for groups of pages that contain the same views).
Thanks! I'll give that a try.
Where a typical Rails app has a controller per model with all the crud actions for that model, we have used one Backbone router per model. It worked out so that there was one Backbone router per top level nav item.
For multi-page applications the problem becomes how to load and manage dependencies on the client-side. I use http://requirejs.org/ for this.
Is the idea to treat each page as a unique application?