jQuery templating engines
Check out Rick Strahl's post Client Templating with jQuery. He explores jTemplates, but then makes a better case for John Resig's micro-templating solution, even improving it some. Good comparisons, lots of samples.
Just did some research on this and I'll be using jquery-tmpl. Why?
- It's written by John Resig.
- It'll be maintained by the core jQuery team as an "official" plugin. EDIT: The jQuery team have deprecated this plugin.
- It strikes a perfect balance between simplicity and functionality.
- It has a very clean and well thought out syntax.
- It HTML-encodes by default.
- It's highly extensible.
More here: http://forum.jquery.com/topic/templating-syntax