herrera-io/template

This package is abandoned and no longer maintained. No replacement package was suggested.

A simple templating engine using regular PHP files.

2.0.0 2013-06-18 22:20 UTC

This package is not auto-updated.

Last update: 2021-12-07 01:37:45 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