Type: Class

Category: algorithms

License: BSD License


Siviglia Templates is a PHP templating system that offers a semantic description of UIs, reusable template components, simple and intuitive syntax, and PHP code generation. It works by taking template strings -- which are PHP scripts -- and parsing them using the PHP tokenizer extension to figure out the blocks and sections of the template.


Siviglia Templates supports several types of tags, which it converts into PHP code and merges with the template PHP code. It executes the resulting code to generate the template output.


Sample website template: