I'd prepare all data in controller + use one of mustache implementation. Using async db calls from templates - I believe it would be a bad idea even for a developer, forcing users to do such a complex and error prone task would be even worse.
As for general feelings, I belive Node.js development speed is about 2-4 times slower than RoR, but, it has some advantages. And, in UI-heavy Apps usually the client is much complex than server, so, in the end the difference is not so big. As for lanugage, well, CoffeeScript eliminates most of JS ugliness and makes it tolerable. P.S. As I said, I strongly believe that making async calls form views should be avoided. But if You really want to do that, You may take a look at fibers. I'm not sure how it will behave in production, but it greatly helps me writing tests with lots of async call, I use this tiny wrapper over fibers http://alexeypetrushin.github.com/synchronize . -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en
