walnut/lib_templaterenderer

There is no license information available for the latest version (dev-master) of this package.

dev-master 2022-05-13 21:15 UTC

This package is not auto-updated.

Last update: 2024-10-28 13:44:44 UTC


README

This is a very basic template renderer that uses PHP as a template engine.

Examples

The usage is straightforward

$renderer = new PhpTemplateRenderer(
	new PerFileTemplateNameMapper('templates', 'php')
);

$pageData = ['some data'];
$renderedContent = $renderer->render('page', $pageData);