mozilla/kumascript — pull request #5 by lmorchard (2012-03-30 21:06:39+00:00)
Title: bug 739735, 739737: Template libraries and includes

* template() - fixes bug 739735, executes another template, returns
the output. Useful for wrapping other templates in additional logic.

* require() - fixes bug 739737, executes another template, captures
exported data & methods to be cached and returned. Useful for building
reusable code libraries.

* Auto-require feature, allows server to be configured with a set of
template libraries that get automatically loaded for every request.
Useful for building out DekiScript API shims that will be made
available to all migrated templates.

* Expose node-fibers Future and HTTP request access to templates for
building libraries.

* Additional notes on the setCaseVariantAliases hack

* Tests and fixtures