APR-Template is a minimalist template library implemented on top of APR
and APR-Util. It's designed to provide a lightweight templating solution
that fits easily into an Apache HTTPD module or other APR based program.
The template language looks like this:
[% print title %]
[% if add_header %]
[% end %]
[% print title %]
[% for e in elements %]
- [% print e %]
[% end %]
[% if add_footer %]
[% end %]
Which produces about what you'd expect. If you've used Template-Toolkit
or EZT you'll find APR-Template 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 APR-Template in a program please refer to the
tmpl command line tool (in src/cmdline/tmpl.c) and the mod_template_example
apache module (in examples/mod_template_example).
If you have any questions please direct them to the author, Garrett Rooney,
.