"Michael Haufe (TNO)" <tno@thenewobjective.com> writes:
>What is the community's personal approach for performing HTML Templating?
It is recommanded to keep HTML out of JavaScript , so you'd
put your template into the HTML file (you can hide it there
in a comment entry or in a script entry with a custom
language-type) or retrieve it from the server (for example,
using AJAX).
Simple templates can be instantiated by just
template.replace( /VARNAME/g, WHATEVER );
. For complex templating, check out Handlebars.