contemplate
This library is no longer maintained. Template library that uses pure PHP syntax. Nothing new to learn, blazingly fast, and compatible with PHP 5.2+.
$template = new ehough_contemplate_impl_SimpleTemplate(); //implements ehough_contemplate_api_Template
$template->setPath('/some/path/to/template.html.php');
$template->setVariable('foo', 'bar');
$template->setVariable('baz', array('one' => 'two'));
echo $template->toString();