* @package patTemplate * @subpackage Examples * @link http://www.php-tools.net */ /** * Main examples prepend file, needed *only* for the examples framework! */ include_once 'patExampleGen/prepend.php'; // EXAMPLE START ------------------------------------------------------ /** * patErrorManager class */ require_once $neededFiles['patErrorManager']; /** * patTemplate */ require_once $neededFiles['patTemplate']; $tmpl = &new patTemplate(); $tmpl->setRoot( 'templates' ); $tmpl->applyInputFilter('ShortModifiers'); $tmpl->readTemplatesFromInput( 'example_var_modifier_varscope.tmpl' ); $vars = array( 'first' => 'this is the first', 'second' => 'the second one', 'third' => 'third time is a charm' ); $tmpl->addVars( 'page', $vars ); $tmpl->displayParsedTemplate(); ?>