News for hackers. Stuff that matters.
Re:Why I switched to Spine.js by cmer on Monday May 21, 2012 @09:20AM (#4002676)
Semi-related question for you experts out there: how do these frameworks fit into a multi-page web app (ie: a typical Rails app)? They all seem to target the single-app market and the examples are always so simple that I have yet to figure how to build a larger application with either Backbone, Spine or Ember.

Is the idea to treat each page as a unique application?

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).
Re:Why I switched to Spine.js by cmer on Monday May 21, 2012 @10:04AM (#4002880)
Thanks! I'll give that a try.
Re:Why I switched to Spine.js by hehejubee on Monday May 21, 2012 @11:18AM (#4003231)
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.
Re:Why I switched to Spine.js by apsurd on Monday May 21, 2012 @03:17PM (#4004396)
For multi-page applications the problem becomes how to load and manage dependencies on the client-side. I use http://requirejs.org/ for this.