jQuery templating engines [closed]
Solution 1:
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.
Solution 2:
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
Solution 3:
jQote: http://aefxx.com/jquery-plugins/jqote/
Someone took Resig's micro-templating solution and packaged it into a jQuery plugin.
I'll be using this until Resig releases his own (if he releases his own).
Thanks for the tip, ewbi.