@Marak: I was unaware of weld. As I mentioned, there are a *lot* of
template engines. I first implemented those that I knew about. I'd
welcome the addition if you could take a few moments to add it.
@Nicolas: I should probably clarify filters. Jade's filters are for
block rendering--the filters I mean are things like the ability to
output a Date object in whatever format you want, decided by the
template, or perhaps make a context string become titlecase, no matter
what case it currently is in.
@Christophe: There is already support in the benchmark suite for
separating out the render and compile steps. The displayed benchmarks
are meant to be more of an "out of the box" view of the benchmarks. My
guess is that most people won't know that they have to manual cache
the compile step on their own--typically, template engines do that for
them. I do, however, plan to add separate bench tables to the page for
each step–I just need to get the time to write a script that'll
convert node-bench output to an html table.
On Sep 27, 6:17 am, Christophe Eymard
Post by Christophe EymardHi,
I think that the benchmarks could be improved a little ; right now, they're
compiling/rendering at each and every step. Not all template engines do
template caching by default.
Right now, the order is in the regular benchmark on my machine ; swig (77),
jqtpl (51), hamljs (3.14), ejs (2.4), Templ8 (1.7), jade (1.3), mu2 (0.8),
dust (0.57), jinjs (0.39), coffeekup (0.34) with re-compiling at every step.
(jinjs is an engine I develop, btw).
When caching the rendered template for all languages, the order is fairly
different ;
jinjs (185), dust (159), swig (91), ejs (81), hamljs (67), coffeekup (59),
jqtpl (53), jade (50), mu2 (26), Templ8 (20)
Most of the time, I don't care too much about compilation speed, since in a
correctly tuned environment this should only happen once (or when a source
file changes). I in fact designed JinJS for execution speed, but so far have
not really bothered to optimise the compiler.
I think that rendering speed is much more important, which is why I suggest
that the tests get separated in two categories ; compilation and execution.
Thoughts ?
On Tue, Sep 27, 2011 at 14:49, Nicholas Campbell <
Post by Nicholas CampbellJade has support for filters.
https://github.com/visionmedia/jade/blob/master/examples/nested-filte...
- Nick Campbell
http://digitaltumbleweed.com
On Mon, Sep 26, 2011 at 8:18 PM, Paul Armstrong <
Post by Paul ArmstrongIt turns out that there are a lot of tempting engines available for
Node.js.
Why not have a single place to reference the available template
engines and make an informed choice as to which to use?
http://paularmstrong.github.com/node-templates/
I'm trying to keep the list to any template engines that are actually
still usable and/or actively developed. However, my facts may be off
on a few and my implementation for benchmarks may not be optimized.
(some of the docs for these leave much to be desired)
A million karma points to anyone that has more experience in some of
these template engines if they help out, contribute, fact check, or
fork and submit pull requests.
--
Job Board:http://jobs.nodejs.org/
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 unsubscribe from this group, send email to
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en
--
Job Board:http://jobs.nodejs.org/
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 unsubscribe from this group, send email to
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en
--
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 nodejs-/***@public.gmane.org
To unsubscribe from this group, send email to
nodejs+unsubscribe-/***@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en