The Electric Template Language is a minimalist template library
implemented on top of APR and APR-Util. It's designed to provide a
lightweight template solution that fits easily into an Apache HTTPD
module or other APR based program.
The template language looks like this:
[%= title | html %]
[% if add_header %]
[% end %]
[%= title | html %]
[% for e in elements %]
- [%= e | html %]
[% end %]
[% if add_footer %]
[% end %]
Which produces about what you'd expect. If you've used Template
Toolkit or EZT you'll find ETL to be similar, although the feature set
is quite stripped down, so if you find yourself trying to do a whole
lot in your template it's a sign that you either need to put that
logic into your C code or find a different template engine.
For examples of how to use ETL in a program please refer to the etl
command line tool (in src/cmdline/etl.c) and the mod_template_example
apache module (in examples/mod_template_example/). There are also
some example templates in the examples/ directory.
There is also some documentation on the actual language in the www/
subdirectory.
If you have any questions please direct them to the project's mailing
list, dev@etl.i-want-a-pony.com.