MDN may have intermittent access issues April 18 13:00 - April 19 01:00 UTC. See whistlepig.mozilla.org for all notifications.

mozilla

Revision 63289 of JavaScript templates

  • Revision slug: JavaScript_templates
  • Revision title: JavaScript templates
  • Revision id: 63289
  • Created:
  • Creator: Brettz9
  • Is current revision? No
  • Comment adding page

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.

An example implementation is at: http://code.google.com/p/trimpath/wiki/JavaScriptTemplates

A fuller syntax has been developed for PHP, called Smarty and which might serve as a basis for expanding upon the work done in the Trimpath engine.

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><p>An example implementation is at: http://code.google.com/p/trimpath/wiki/JavaScriptTemplates
</p><p>A fuller syntax has been developed for PHP, called <a class="external" href="http://smarty.php.net/manual/en">Smarty</a> and which might serve as a basis for expanding upon the work done in the Trimpath engine.
</p>
Revert to this revision