Alleen lukt me onderstaande code niet om op te lossen.
function parse_bb_tpl ($part, $args)
{
// just a replace, with evaluation...
return preg_replace (
'/{([^}\s]+)}/e',
"isset (\$args['\\1']) ? \$args['\\1'] : '';",
$this->_tpls[$part]
);
}