4 ms·
I guess there’s be a blog post coming up soonish, but for me the big deal is integration of a templating language. We experimented with the MS-written templatin
by robin_reala 16y ago
I guess there’s be a blog post coming up soonish, but for me the big deal is integration of a templating language. We experimented with the MS-written templating plugin that’s now been integrated and it seems pretty good.
- jeresig 16y agoThat's not happening in this release - that's just an official jQuery plugin that we released and maintain separately.
- robin_reala 16y agoOh, oops, guess who’s not been following the release schedule? :) Thanks for the heads up!
- jeremychone 16y agoWe have been using jQuery-TMPL and it is very cool.
- jashkenas 16y agoBeware of Microsoft's jQuery-tmpl templates, if you care about being able to render your views with reasonable performance. You can benchmark 'em yourself here: http://jsperf.com/dom-vs-innerhtml-based-templating/73 http://jsperf.com/dom-vs-innerhtml-based-templating/73 TL, Didn't Benchmark: Two orders of magnitude slower (approx) than other engines. On the iPad, for example, jQuery-tmpl was able to render a small template 181 times in a second, whereas Eco, at the other end of the scale, was able to render the same template 11,549 times.
- robin_reala 16y agoThanks for the info. For our internal tests our app renders a template a few times a minute with ~500 nodes, but all our users are on Firefox 4 or Chrome latest so no-one’s noticed a problem. If we stard building client-facing apps I’ll definitely look at the alternatives.
- TeHCrAzY 16y agoI don't see why its relevant how fast it can render templates: Wouldn't anything more than once or twice a second be sufficient for general needs? Edit: I also want to point out that the linked page above is user editable, and allows remotely hosted javascript (by design). Beware :/
- jashkenas 16y agoIn JS web apps, the most common speed constraint you'll encounter is how fast you can render views and update the DOM. Imagine trying to render 500 list items ... say, contacts in an address book -- you don't really want that to take 3 seconds on an iPad. If it works for your needs, that's fantastic, but it's nice to be aware of the performance relative to alternatives that accomplish the same goal.