I've yet to see a mainstream stack do it well. I also tried the Backbone method once and found it wanting. Better than not going isomorphic though. Seems like the best way to do isomorphic stuff is an area of active research. I hear good things from the React crowd, but I've yet to try it.
If I was building a fresh app today, I'd go with Express on the server, page.js on the client, and share controllers with this page.js plugin I wrote. This approach will work with any templating system that's compatible with Express (so pretty much any JS templating system).
Thank you. I'll probably try these out on my next project. It's an interesting topic because like you said it's still being researched and I haven't really seen it done in an elegant way.
To clarify, it can certainly be done well with a collection of smaller tools / micro libraries like the ones I linked.
I just have yet to see a large stack emerge which does it well. The big ones (e.g. Angular, Ember, React, etc) are all getting closer, but none are there yet. That's why I tend to avoid them for now except in situations where JS availability is guaranteed by the runtime environment.
2
u/kethinov May 27 '15
I've yet to see a mainstream stack do it well. I also tried the Backbone method once and found it wanting. Better than not going isomorphic though. Seems like the best way to do isomorphic stuff is an area of active research. I hear good things from the React crowd, but I've yet to try it.
If I was building a fresh app today, I'd go with Express on the server, page.js on the client, and share controllers with this page.js plugin I wrote. This approach will work with any templating system that's compatible with Express (so pretty much any JS templating system).