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
don't care
Does it need to be one of the very fastest?
yes
no
Do you need to pre-compile templates?
yes
no
Do you need partials?
yes
no
Do you want a DOM structure, or just a string?
DOM
string
don't care
Aside from template tags, should it be the same language before and after rendering?
yes
no
don't care
dom.js
github
doT.js
project
(2.742k)
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)
Plates.js
github
(10.811k)
pure.js
project
(11.7k)
Transparency
project
(5.491k)
Underscore templates
project
(4k)