TemplateRenderer is a simple template rendering library for PHP weighing in
at under 300 lines of code. It consists of 2 classes (TemplateRenderer
and
TemplateCompiler
) and 1 script compile.php
for template compiling.
Features:
- Templates are plain old PHP
- Nested templates
- Template inheritance
- Flexible localization
See example/
for example usage.