Added template parser classes.
- The Template class represents a template file, consisting of blocks and variables. - The Node class is used to create a tree structure of the blocks in a template file, and of the data that is mapped on the blocks.
Showing
- base.php 3 additions, 2 deletionsbase.php
- node.php 328 additions, 0 deletionsnode.php
- template.php 380 additions, 0 deletionstemplate.php
- tests/_files/other_templates/bar.tpl 0 additions, 0 deletionstests/_files/other_templates/bar.tpl
- tests/_files/rendered/blocks.html 12 additions, 0 deletionstests/_files/rendered/blocks.html
- tests/_files/rendered/full.html 17 additions, 0 deletionstests/_files/rendered/full.html
- tests/_files/rendered/full.tpl 9 additions, 0 deletionstests/_files/rendered/full.tpl
- tests/_files/rendered/variables.html 5 additions, 0 deletionstests/_files/rendered/variables.html
- tests/_files/templates/blocks.tpl 7 additions, 0 deletionstests/_files/templates/blocks.tpl
- tests/_files/templates/foo.tpl 1 addition, 0 deletionstests/_files/templates/foo.tpl
- tests/_files/templates/full.tpl 9 additions, 0 deletionstests/_files/templates/full.tpl
- tests/_files/templates/missing_end.tpl 6 additions, 0 deletionstests/_files/templates/missing_end.tpl
- tests/_files/templates/unexpected_end.tpl 5 additions, 0 deletionstests/_files/templates/unexpected_end.tpl
- tests/_files/templates/variables.tpl 5 additions, 0 deletionstests/_files/templates/variables.tpl
- tests/test_node.php 226 additions, 0 deletionstests/test_node.php
- tests/test_template.php 314 additions, 0 deletionstests/test_template.php
Loading
Please register or sign in to comment