Re:Server-side view or client-side MVC?
by beermann on Tuesday February 26, 2013 @05:24PM
(#5289087)
I was writing something to do this a while back actually. Just recently AirBnB wrote about it as well: http://nerds.airbnb.com/weve-launched-our-first-nodejs-app-t.... They're using Backbone on both the client and server to accomplish what you're talking about. I haven't seen a complete framework that does this yet though.
I did something similar using Blade (https://github.com/bminer/node-blade) which is a great client and server-side templating engine, but it wasn't as smooth as I would've liked.
I guess we'll have to wait (or do-it-ourselves).
My bet would be both, but I couldn't find any framework that could render both server and client side templates based on the HTTP headers without enormous amounts of glue code.