mirror of
https://github.com/twigphp/Twig.git
synced 2026-10-28 14:46:27 +00:00
Merge branch '2.x' into 3.x
* 2.x: macros imported "globally" in a template are now available in macros without re-importing them added more tests added some tests
This commit is contained in:
@@ -32,6 +32,7 @@ class BlockNode extends Node
|
||||
->addDebugInfo($this)
|
||||
->write(sprintf("public function block_%s(\$context, array \$blocks = [])\n", $this->getAttribute('name')), "{\n")
|
||||
->indent()
|
||||
->write("\$macros = \$this->macros;\n")
|
||||
;
|
||||
|
||||
$compiler
|
||||
|
||||
Reference in New Issue
Block a user