$compiler
->raw('$this->env->loadTemplate(')
->subcompile($this->getNode('expr'))
- ->raw(", true)")
+ ->raw(")")
;
}
$var = new Twig_Node_Expression_AssignName('macro', 0);
$node = new Twig_Node_Import($macro, $var, 0);
- $tests[] = array($node, '$context[\'macro\'] = $this->env->loadTemplate("foo.twig", true);');
+ $tests[] = array($node, '$context[\'macro\'] = $this->env->loadTemplate("foo.twig");');
return $tests;
}
{
\$context = array_merge(\$this->env->getGlobals(), \$context);
- \$context['macro'] = \$this->env->loadTemplate("foo.twig", true);
+ \$context['macro'] = \$this->env->loadTemplate("foo.twig");
\$this->getParent(\$context)->display(\$context, array_merge(\$this->blocks, \$blocks));
}