* @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->readTemplatesFromInput( 'example_var_modifier_placeholder.tmpl' );
$tmpl->addVar( 'page', 'length', 30 );
$tmpl->addVar( 'page', 'suffix', 'local suffix' );
$tmpl->addGlobalVar( 'prefix', 'global prefix' );
$tmpl->addGlobalVar( 'suffix', 'global suffix' );
$tmpl->addVar( 'page', 'text', 'This text is way too long! This text is way too long! This text is way too long! This text is way too long!' );
$tmpl->displayParsedTemplate();
?>