PHPTal

PHPTal-related stuff
(See also: Skins)

Sample parsed php: phptal
template:   place for the page title sample title Sample Sitetitle Sample Content text

php: getContext; $__out__ = new PHPTAL_OutputControl($__ctx__, $__tpl__->getEncoding); $__ctx__->set("repeat", array); if (! $__tpl__->_headers) { $__tpl__->_headers = ' ';   }    $__out__->writeStructure('   '); // TAG title AT LINE 4 $_src_tag = "title"; $_src_line = 4; $temp_0 = $__ctx__->get("title"); $__out__->write($temp_0); $__out__->writeStructure('  '); // TAG h1 AT LINE 9 $_src_tag = "h1"; $_src_line = 9; $temp_1 = $__ctx__->get("title"); $__out__->write($temp_1); $temp_3 = "sitetitle"; $__out__->writeStructure('  '); $temp_2 =& $temp_3; $__out__->pushBuffer; $__out__->writeStructure('Sample Sitetitle'); $__out__->popBuffer; $__out__->writeStructure($__tpl__->_translate($temp_2)); $__out__->writeStructure('  '); // TAG div AT LINE 11 $_src_tag = "div"; $_src_line = 11; $temp_4 = $__ctx__->get("bodytext"); $__out__->writeStructure($temp_4); $__out__->writeStructure(' '); return $__out__->toString; } ?>