mozilla

Revision 63290 of JavaScript templates

  • Revision slug: JavaScript_templates
  • Revision title: JavaScript templates
  • Revision id: 63290
  • Created:
  • Creator: Brettz9
  • Is current revision? No
  • Comment +JSmarty, making sep. section: "Example implementations"

Revision Content

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.

Example implementations

Revision Source

<p>An alternative approach to XUL's own templating system, is to use JavaScript templates.
</p><p>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.
</p>
<h3 name="Example_implementations">Example implementations</h3>
<ul><li> <a class="external" href="http://code.google.com/p/trimpath/wiki/JavaScriptTemplates">JavaScriptTemplates</a>
</li><li> <a class="external" href="http://code.google.com/p/jsmarty/">JSmarty</a> (a system based apparently more closely on <a class="external" href="http://smarty.php.net/manual/en">Smarty</a>, with many more functions, and with more recent contributions)
</li></ul>
Revert to this revision