jader icon indicating copy to clipboard operation
jader copied to clipboard

Server-side performance

Open Rush opened this issue 11 years ago • 3 comments

Have you done any comparisons on server-side performance vs other solutions like slim?

Rush avatar Nov 25 '14 17:11 Rush

Server-side performance of this kind of solution is bound to be pretty bad in comparison to ruby-based template engines because of the underlying V8 dependency.

The idea here is to be able to make SPA accessible to search-engines, which means that to speed things up you might have to employ some good caching.

zohararad avatar Nov 25 '14 18:11 zohararad

Thanks .. It is a pity. I come from Node.JS background where backend and client templates sharing is a piece of cake and I wanted to leverage the same thing in the RoR project. Do you use jader yourself in any production environment or is it just an experiment?

Rush avatar Nov 25 '14 18:11 Rush

I agree, and sharing templates in Node.js is indeed a piece of cake. I originally created Jader for a project i was working on with RoR at the back and Jade (Backbone) at the front.

I currently use a different technique with Batman.js and ERB - Check an example here - https://github.com/zohararad/batsoe

zohararad avatar Nov 25 '14 19:11 zohararad