LambdaTemplates
Building a very trivial tool for programmable templates support
Background
Examples
Grammar will be something like
expression := body | LAMBDA (argument COMMA)* DOT body;
body := CHAR*;
$p = new LambdaTemplates();
$p->setVar('x','10');
$p->setVar('what is x','/x.is /x = x?');
echo $p->processTemplate('question: %what is x%');
$p = new LambdaTemplates();
$p->setVar('titel','herr');
$p->setVar('name','y.y.');
$p->setVar('titelname','/titel,name.titel name');
echo $p->processTemplate('question: %titelname%');