setRoot('templates'); $tmpl->readTemplatesFromInput('bug138.tmpl'); echo '
';
echo 'Display template without setting a variable';
echo htmlentities($tmpl->getParsedTemplate('table'));
echo '
';


$tmpl->clearAllTemplates();
$tmpl->addVar('row', 'VALUE', 'one');
echo '
';
echo 'Display template with setting one value';
echo htmlentities($tmpl->getParsedTemplate('table'));
echo '
';

$tmpl->clearAllTemplates();
$tmpl->addVar('row', 'VALUE', array('one', 'two', 'three', 'four', 'five'));
echo '
';
echo 'Display template with setting more than one value';
echo htmlentities($tmpl->getParsedTemplate('table'));
echo '
';
?>