zohararad / jader

Client and Server side Jade template compiler for Rails
Other
66 stars 9 forks source link

Server-side performance #7

Open Rush opened 9 years ago

Rush commented 9 years ago

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

zohararad commented 9 years ago

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.

Rush commented 9 years ago

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?

zohararad commented 9 years ago

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