Simple template engine with limited logic written in PHP. A version written in Javascript can be found here.
<?php
require 'myTpl.php';
use myuce\myTpl;
$tpl = new('tplDir','cacheDir');
$tpl->set('name','John Doe');
$tpl->load('test');
?>
Hello! My name is {%name}.
And the result should look like this:
Hello! My name is John Doe.
The test files can be checked for futher examples.