PHP 5: template_tpl
Reynier Blanco (contact me)
This class can be used to process templates with text blocks inside each other.
It can search and replace template placeholders delimited by marks defined by variable names enclosed in special mark start and end characters.
Special marks are used to define template blocks that may define conditional sections.
The class creates new instances of itself to process nested blocks.
Click here for detailed information about this class on phpclasses.org