zoredache
public php v1 · immutable<?phprequire_once 'HTML/Template/Flexy.php';require_once 'HTML/Template/Flexy/Element.php';$tpldir = 'templates';$VarPath='/somewhere/';$tpl = new HTML_Template_Flexy(array('templateDir' => $VarPath.'Templates', 'compileDir' => $VarPath.'Compiled',));$tpl->compile('basic.tpl');$view = new stdClass;$view->Title = 'Test Page';// PageContent would come from a DB or XML file.$view->PageContent = 'This is a test page'; $tpl->outputObject($view);?>