Marcello Bastéa-Forte has developed OnionML, a layout template
language that uses server side JavaScript with Rhino and E4X on the back
end.
The high-level goal of the template engine is to be something with
utility not unlike CSS, but for intended layout and composition. The actual
functionality is similar to XSLT, but with the design goal of being simple
and easily extensible.
Onion ML is an XML template system designed with a bias toward
modularity.
Onion ML lets you easily custom XML tags to make modular content design
simple and easy to mix with HTML. It is somewhat comparable to XSLT and
JSF, but intended to be easier to understand.
You define custom tags either as markup in XML files or as custom
JavaScript functions which generate output.
Onion ML also provides several control flow methods necessary for
dynamic content. Methods for iterating over data sets and conditionally
displaying tags are core to Onion ML's functionality.
|