rocketphp/template

Dynamic HTML templates.

1.0.0 2015-09-01 18:14 UTC

This package is not auto-updated.

Last update: 2024-11-13 10:31:44 UTC


README

Build Status Coverage Status Dependency Status

Latest Stable Version License

RocketPHP\Template uses static template files. It replaces [@var] tags with PHP variables.

To use a template – start with an instance of Template and set variables before calling output().

use RocketPHP\Template\Template;

$tpl = new Template('index.tpl');
$tpl->set('title', 'My Page Title');
echo $tpl->output();