The Electric Template Language is a minimalist template library
implemented in portable C code. It's designed to provide a lightweight
template solution that can be easily embedded into scripting languages
or C and C++ programs.
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, EZT or Clearsilver 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.