41 ms·
Server-side views are resource hogs. Client-side MVC is not SEO friendly and throws non-JS (or crappy) browsers away. My bet would be both, but I couldn't find
by kaoD 14y ago
Server-side views are resource hogs. Client-side MVC is not SEO friendly and throws non-JS (or crappy) browsers away.
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.
- beermann 14y agoI 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-to-product 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.
- kaoD 14y agoI did something similar using Blade (https://github.com/bminer/node-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).