ehough/contemplate

Template library that uses pure PHP syntax. Nothing new to learn, blazingly fast, and compatible with PHP 5.2+.


License
MPL-2.0

Documentation

contemplate

Build Status Project Status: Unsupported - The project has reached a stable, usable state but the author(s) have ceased all work on it. A new maintainer may be desired. Latest Stable Version License

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();