PHPBuilder - Siviglia PHP Template System



RSS Twitter
Snippets Algorithms

Siviglia PHP Template System

by: Jose Maria Rodriguez Millan
|
December 31, 2012

Type: Class

Category: algorithms

License: BSD License

Description:

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:

 

    [*PAGE]

         [_MENU]

             [_MENUITEM]

                 [_LABEL]Home[#]

                 [_LINK]http://...[#]

             [#]

             ..

          [#]

    [#]


Download: siviglia-templates.zip

Comment and Contribute

Your comment has been submitted and is pending approval.

Author:
Jose Maria Rodriguez Millan

Comment:



Comment:

(Maximum characters: 1200). You have characters left.