E.g. with Tim
Simple string templates
Templates in the HTML
Loops:
See jQuery templates, Django templating, John Resig's tmpl, Mustache.