public static function resolveHelper(&$context, &$name)
{
if (isset($context['helpers'][$name])) {
return true;
}
if ($context['helperresolver']) {
$helper = $context['helperresolver']($context, $name);
if ($helper) {
$context['helpers'][$name] = $helper;
return true;
}
}
}