JavaScript templates
From MDC
An alternative approach to XUL's own templating system, is to use JavaScript templates.
This approach also provides a separation of formatting and structure from content, but relies on a JavaScript templating engine to have JavaScript-side business logic inject content into a template. And this does not require any use of RDF/XML, etc.
[edit] Example implementations
- JavaScriptTemplates
- JSmarty (a system based apparently more closely on Smarty, with many more functions, and with more recent contributions)
- jQSmarty: jQuery Smarty Plugin (introduced here)