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
Requires
- php: >=5.3.3
- herrera-io/file-locator: 1.*
Requires (Dev)
- herrera-io/phpunit-test-case: ~1.0
- phpunit/phpunit: ~3.7
This package is not auto-updated.
Last update: 2021-12-07 01:37:45 UTC
README
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>