mirror of
https://github.com/twigphp/Twig.git
synced 2026-10-14 15:56:47 +00:00
Rework macros handling
This commit is contained in:
@@ -129,7 +129,7 @@ class __TwigTemplate_%x extends Template
|
||||
EOF
|
||||
, $twig, true];
|
||||
|
||||
$import = new ImportNode(new ConstantExpression('foo.twig', 1), new AssignNameExpression('macro', 1), 2);
|
||||
$import = new ImportNode(new ConstantExpression('foo.twig', 1), 'macro', 2);
|
||||
|
||||
$body = new BodyNode([$import]);
|
||||
$extends = new ConstantExpression('layout.twig', 1);
|
||||
|
||||
Reference in New Issue
Block a user