Location: PHPKode > scripts > abc template > example.php
<?php
/*
* this is an example with simple data pairs; each key of the array represents the tag to be replaced and the value is the data. 
*/

/*
* template processor
*/
require('class_template.php');
$page = new Page("page.html");

/*
* here we go; replace all placeholders
*/
$page->replace_tags(array(
				'first' => 'This is my first sentence'
				,'rand' => 'And this is my random #: ' . rand(100,999)
				));

$page->output('ISO-8859-15');
?>
Return current item: abc template