Templates: Phptempt
Hans Körber (contact me)
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.
Click here for detailed information about this class on phpclasses.org
Example
Recursively print contents of a specified directory
Data
Template for the list_dir.php example script
Doc.
Contains links to tutorial and additional stuff
Class
JavaCC file for the template parser, see code text for brief installation instructions
Class
Contains methods of the Phptempt API (include template, add values, output etc.)
Example
output of a HTML table with rows in three different colours
Data
Template file for the three_color.php example
Data
Cascading style sheet for HTML version of the tutorial