4 ms·
Hm, what about https://github.com/jquery/jquery-tmpl https://github.com/jquery/jquery-tmpl, jquerys official templating plugin? I use this one with a js-app in
by abp 16y ago
Hm, what about https://github.com/jquery/jquery-tmpl https://github.com/jquery/jquery-tmpl, jquerys official templating plugin?
I use this one with a js-app in conjunction with knockout.js and a few others.
So performance of this one would be interesting, too.
Btw: The actual benchmark is really compelling.
- moe 16y agojquery-tmpl is "Resig Micro-Templates" in his screenshot. Should be plenty fast enough for all but the most demanding use-cases.
- jashkenas 16y agoJSPerf.com is like a wiki -- so by all means, please edit the page and add a "jquery-tmpl" test.
- deleted 16y ago[deleted]
- abp 16y agoYes, i know. I'am just very tired. But anyway, i've added it now. http://jsperf.com/dom-vs-innerhtml-based-templating/46 http://jsperf.com/dom-vs-innerhtml-based-templating/46 It performs really poor..
- jashkenas 16y agoOh my goodness -- that's really fascinating. I had no idea that the new jQuery-tmpl templates were that egregiously slow. (Nearly 100x slower, for those who don't want to run the tests.) Thanks for adding 'em to the list.
- abp 16y agoNo problem after all. :) It's really horrible. But it's not that bad for me. knockout.js does a good job with partial rendering via databinding (ie. only rerender what really changed or is added). Also it's just beta 1, lets see what happens next. But adding Eco Template as engine for knockout.js would be a great idea, i think...