43 return $this->
template->render(
$context);
78 return $this->
template->getBlockNames(
$context);
92 $level = ob_get_level();
97 while (ob_get_level() > $level) {
103 while (ob_get_level() > $level) {
110 return ob_get_clean();
121 $this->
template->displayBlock(
$name, $this->env->mergeGlobals(
$context));
129 return $this->
template->getSourceContext();
133 class_alias(
'Twig_TemplateWrapper',
'Twig\TemplateWrapper',
false);
render($context=array())
Renders the template.
Exposes a template to userland.
display($context=array())
Displays the template.
getBlockNames($context=array())
Returns defined block names in the template.
hasBlock($name, $context=array())
Checks if a block is defined.
renderBlock($name, $context=array())
Renders a template block.
Default base class for compiled templates.
__construct(Twig_Environment $env, Twig_Template $template)
This method is for internal use only and should never be called directly (use Twig_Environment::load(...
displayBlock($name, $context=array())
Displays a template block.
Stores the Twig configuration.