mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-12 18:36:53 +00:00
Update doc for macro with embed tags
This commit is contained in:
@@ -130,6 +130,9 @@ macros are available in all blocks and other macros defined in the current
|
||||
template, but they are not available in included templates or child templates;
|
||||
you need to explicitly re-import macros in each template.
|
||||
|
||||
Imported macros are not available in the body of the ``embed`` tag. you need
|
||||
to explicitly re-import macros inside the tag.
|
||||
|
||||
When calling ``import`` or ``from`` from a ``block`` tag, the imported macros
|
||||
are only defined in the current block and they override macros defined at the
|
||||
template level with the same names.
|
||||
|
||||
Reference in New Issue
Block a user