This class implements a template engine that compile templates into PHP.
It reads a given template file and replaces certain marks by PHP code that implement the supported template logic.
The class supports template variables, conditional sections, loops, including additional templates, etc..
The generated compiled template is saved to a PHP file so it does not need to be compiled again when the same template is used. The resulting template HTML may be compressed optionally.
The compiled template file is included to process the template and generate its output. |