Template engine for PHP and Java. Templates are precompiled and then included to the script/Java program. Templates are organized in repeating blocks and placeholders, all placed in one single file. Blocks may be recursive. A version of the engine is available that is optimized for Java and particularly useful for the creation of code generators of any kind.
| File |
Role |
Description |
list_dir.php |
Example |
Recursively print contents of a specified directory |
list_dir.tpl |
Data |
Template for the list_dir.php example script |
notes.txt |
Doc. |
Contains links to tutorial and additional stuff |
phptempt.jj |
Class |
JavaCC file for the template parser, see code text for brief installation instructions |
phptempt.php |
Class |
Contains methods of the Phptempt API (include template, add values, output etc.) |
three_color.php |
Example |
output of a HTML table with rows in three different colours |
three_color.tpl |
Data |
Template file for the three_color.php example |
tutorial.css |
Data |
Cascading style sheet for HTML version of the tutorial |
tutorial.html |
Doc. |
Online tutorial, contains many examples |