In terms of performance, I found that this is not the template engine itself, but more if it is possible to precompile templates. It is good practice to combine and minimize all JavaScript source files into a single file in production mode, so this is basically the same step as compiling templates.
I used the jQuery and Mustache template for client-side templates, but my favorite is still EJS , which has always formed much faster than everything I've tried so far, especially in production mode (compiles to own string concatenation whenever possible and requires only one DOM access to actually insert the rendered view). It is part of the JavaScriptMVC framework and when used with StealJS as a dependency manager, it already does the whole compilation template for you (The View Engine also supports Micro, Mustache and jQuery templates).
Daff Oct. 17 '11 at 1:52 2011-10-17 01:52
source share