mozilla

Revision 63291 of JavaScript templates

  • Revision slug: JavaScript_templates
  • Revision title: JavaScript templates
  • Revision id: 63291
  • Created:
  • Creator: Brettz9
  • Is current revision? No
  • Comment /* 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><li> <a class="external" href="http://www.balupton.com/sandbox/jquery_smarty/">jQSmarty: jQuery Smarty Plugin</a> (introduced <a class="external" href="http://www.phpinsider.com/smarty-forum/viewtopic.php?p=47804">here</a>)
</li></ul>
Revert to this revision