Quickie Template Quickie Template is a templating system that tries to utilize a very simple two step plan to manipulate html files so that a php developer can isolate presentation from code. Download
STEP 1
BlOCKS are just that, blocks of html. Below is what a typical block of code would look like that has beginning and ending tags. This would be setup in an html (or tpl) file that is easily edited by an html editor. Now assuming you have an html file named block.html with the text from the preceding text area, you could use Quickie Template by using the following php code.
Click here to see an example of the output.
STEP 2
Below is a html file that has patterns marked with brackets that will be replaced dynamically with php code. Here is an example of php code to manipulate the the patterns.
Click here to see an example of the output.
Quickie Template was written to be compatible with QuickTemplates. The function names and ideas were all derived from having used QuickTemplates. The underlying code is very different and not feature complete as of yet (2004/11/28).