herrera-io/template

A simple templating engine using regular PHP files.

2.0.0 2013-06-18 22:20 UTC

README

Build Status

Template is a very simple template rendering engine that uses normal PHP files.

$engine = Herrera\Template\Engine::create('/path/to/templates');

$engine['myGlobal'] = 123;

$engine->display('myTemplate.php', array('templateVar' => 456));
<p>myGlobal: <?php echo $myGlobal; ?></p>
<p>templateVar: <?php echo $templateVar; ?></p>

Documentation