← Back to index

So you need a template engine..

Created: 2015-03-26 22:13  |  Source: http://garann.github.io/template-chooser/

Template-Engine-Chooser!

Is this for use on the client or the server? client server both
How much logic should it have? the entirety of JS just the basics none at all
Does it need to be one of the very fastest? yes no
Do you need to pre-compile templates? yes no
Do you need compile-time partials? yes no
Do you want a DOM structure, or just a string? DOM string
Aside from template tags, should it be the same language before and after rendering? yes no

dom.js

github 

doT.js

project (2.742k)

dust.js (LinkedIn)

github (9.3k)

EJS

project (9.8k)

Handlebars.js

project 

Hogan.js

project (2.5k)

ICanHaz.js

project (5.445k)

Jade templates

github (39.687k)

JsRender

project (30.709k)

Markup.js

github (5.1k)

Microtemplating

blog post (1k)

Mustache.js

github (14.513k)

Nunjucks

github (20k)

Plates.js

github (10.811k)

pure.js

project (11.7k)

Transparency

project (5.491k)

Underscore templates

project (4k)
Fastness is based on the top three from revisions of this jsPerf.

Remember! If you don't know what it means, you probably don't care about it. ;)