I need a little help. Because preg_replace is deprecated, I have to convert all my preg_replace to preg_replace_callback...
function parse_bb_tpl ($part, $args)
{
// just a replace, with evaluation...
return preg_replace (
'/{([^}\s]+)}/e',
"isset (\$args['\\1']) ? \$args['\\1'] : '';",
$this->_tpls[$part]
);
}