yahoo/mojito — pull request #1095 by soljin (2013-05-04 06:10:44+00:00)
Title: added doT templates view engine

I've added doT templates as an alternative view engine. It's MIT license, dead simple, SUPER fast, flexible, and in this implementation more fault tolerant than HB. This implementation has support for partials. I haven't made helpers work because they aren't in doT. It would be easy to add a helpers object to the data object going into the compiler that are just references to functions to be used in the template.

I've been using it on one major project and would really like to have dot available on other smaller projects as part of the core mojito lib.

More on doT.
http://olado.github.io/doT/index.html

Benchmarks:

doT is ~46x faster

Chrome 26.0.1386
Handlebars.js:
63,263 ops/sec

Chrome 26.0.1386 (2)
doT.js:
2,943,894 ops/sec