public function useExpr($expr, $tags = array())
{
foreach ($tags as $key => $value) {
if ($key[0] == ':') {
$this->extra_params[$key] = $value;
continue;
}
$this->args['custom'][$key] = $value;
}
$this->template = $expr;
if (!empty($tags)) {
$this->setCustom($tags);
}
$this->output_mode = 'render';
return $this;
}