Location: PHPKode > scripts > Tmpl > tmpl/example.php
<?php

include_once( 'tmpl.class.php' );

// Create Tmpl Object.
(object) $tpl = new Tmpl( array( 'file' => 'example.tpl' ) );

// Parse and print out the template.
$tpl->replace( '[%TITLE%]', 'My Site' );
$tpl->replace( '[%BGCOLOR%]', '#f5f5f5' );
$tpl->replace( '[%COLOR%]', '#003366' );
$tpl->replace( '[%FONT%]', 'Verdana, Helvetica, Sans-Serif' );
echo $tpl->output();


?>
Return current item: Tmpl