I have to create some email templates for use by (gulp) classic ASP. I thought I'd do a bit of reading on templates in order for (1) my template tag convention to be inspired by existing templates and thus be future-friendly, and (2) perhaps if I'm lucky, to find a template I can actually use on the server itself. (PURE, mentioned below, might be a candidate.)
A few thoughts on jQuery templating with jQuery.tmpl | Encosia: "I spent some quality time with Dave Reed’s latest revision of John Resig’s jQuery.tmpl plugin recently, migrating a small project from jTemplates. Since both the jQuery team and Microsoft team have requested feedback on jQuery.tmpl, I decided to write about my experience using it (as I am wont to do with these templating proposals).
Overall, jQuery.tmpl is a great step in the right direction. It’s small, it’s simple, and it’s fast. Overloading append() to allow the append(Template, Data) syntax is phenomenal. That approach feels more like idiomatic jQuery than anything else I’ve used, including jTemplates."
He mentions that it lacks composability, but this article is from May. Has Microsoft added it since then?
From the comments, a few more libraries to consider:
Spark - the new hotness, apparently. Included with the latest Microsoft MVC, if I'm not mistaken.
PURE - seems more decoupled than the others, but at first glance it doesn't seem to support to ubiquitous "${}" convention.
I'm still reading. This is kind of a brain dump for further research at some point when I have more time (i.e. when hell freezes over).