Looking at using a template system for a new project, it\'s only a small site and don\'t want to use the overhead and \'complexity\' of smarty. I don\'t really like template
I believe the PHP itself is a very powerful template engine.
If you just need a very simple template engine, you can wrap a str_replace(), for example:
function template($source, array $vars, $return=false) {
foreach ($vars as $key=>$value) {
$source = str_replace('{'.$key.'}', $value, $source);
}
if ($return) {
return $source;
} else {
echo $source;
}
}
And there is a simple yet flexible template engine from symfony if you need a full featured solution.