top | item 6059261

(no title)

jamesRaybould | 12 years ago

That looks a hell of a lot like underscore.js templates (http://underscorejs.org/#template) to me. What would be the advantage if I was to make the swap?

discuss

order

benbeltran|12 years ago

It's based on EJS. So it's indeed really similar to underscore. In fact, we benchmarked against underscore's template function and EJS and, at least in our templates, achieved better performance (Not very scientific: we got averages out of 200000 renders). It offers breakable printable blocks, and very nice debuggability.

jamesRaybould|12 years ago

I don't suppose you have a jsperf link to contrast and compare? I'm assuming swapping between the 2 isn't all that straightforward?