From e1a94481905cd85615631ed8e99bae01fcf4030b Mon Sep 17 00:00:00 2001 From: Christian Flothmann Date: Thu, 8 Aug 2024 09:23:55 +0200 Subject: [PATCH] clarify that macros shadow other macros/functions --- doc/tags/macro.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/tags/macro.rst b/doc/tags/macro.rst index 5ad2cf020d8..874f35e5092 100644 --- a/doc/tags/macro.rst +++ b/doc/tags/macro.rst @@ -75,7 +75,7 @@ via the ``from`` tag: .. caution:: As macros imported via ``from`` are called like functions, be careful to - not override existing functions: + not shadow existing functions: .. code-block:: twig @@ -113,7 +113,7 @@ Imported macros are not available in the body of ``embed`` tags, 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 +are only defined in the current block and they shadow macros defined at the template level with the same names. Checking if a Macro is defined