Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
turtle4
· 14y ago · 0 comments
Resembles handlebars.js. Can someone point out the difference?
Comments
[–]
devinus
14y ago
Right now Hogan seems to be slower and appears to have less features than Handlebars:
http://jsperf.com/t-bench2/6
[–]
squarecog
14y ago
Couple hours later, Hogan is faster than Handlebars:
http://jsperf.com/t-bench2/7
[–]
jarin
14y ago
I may be misunderstanding this, but that benchmark appears to be based on an in-browser compilation, while Hogan's advantage is the ability to precompile templates.
[–]
lukebaker
14y ago
The compile happens in the setup of the benchmark. So the actual benchmark is testing the rendering speed of the compiled templates.
[–]
devinus
14y ago
Handlebars is also capable of precompiling AFAIK.
[–]
tjholowaychuk
14y ago
handlebars is based on mustache
[–]
devinus
14y ago
So is Hogan, apparently.
[–]
Void_
14y ago
Not based, it just does the same thing.
[–]
superchink
14y ago
Actually, “hogan.js is a compiler for the Mustache templating language” –from
https://github.com/twitter/hogan.js