6 ms·
Resembles handlebars.js. Can someone point out the difference?
by turtle4 15y ago
Resembles handlebars.js. Can someone point out the difference?
- tjholowaychuk 15y agohandlebars is based on mustache
- devinus 15y agoSo is Hogan, apparently.
- Void_ 15y agoNot based, it just does the same thing.
- superchink 15y agoActually, “hogan.js is a compiler for the Mustache templating language” –from https://github.com/twitter/hogan.js https://github.com/twitter/hogan.js
- Void_ 15y agoIt is compiler for Mustache, it does the same thing, it passes the same tests, but they didn't take Mustache code and improve it -- which is in my opinion what being based on means, they instead started from scratch and wrote a brand new parser.
- devinus 15y agoRight now Hogan seems to be slower and appears to have less features than Handlebars: http://jsperf.com/t-bench2/6 http://jsperf.com/t-bench2/6
- jarin 15y agoI 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.
- squarecog 15y agoCouple hours later, Hogan is faster than Handlebars: http://jsperf.com/t-bench2/7 http://jsperf.com/t-bench2/7