File: |
template.php |
Role: |
Class source |
Content type: |
text/plain |
Description: |
The main class |
Class: |
Funcational Template Manager
Template engine that replaces variables in files |
Author: |
By Martin Barker |
Last change: |
Changed to all php code inside the templates and the includes to templates
This is a unique system to this template engine you can add php code inside your template and the include files inside your template with the use of standard <?php ?> tags this will by run while the template is parsing and (untested) should allow you to use php to control what template variables are added to the system E.G
<?php
if($name == "martin"){
echo "Hello {%name%}";
}else{
echo "Hello Guest you need to sign in";
}
?>
This should then affect your template before rendering of the template engine begins |
Date: |
14 years ago |
Size: |
8,898 bytes |
|
|
|