Skip to content

Commit

Permalink
added a doc note
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed Jun 4, 2019
1 parent eb9a3e2 commit ee7be2e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions doc/tags/macro.rst
Expand Up @@ -138,6 +138,12 @@ When calling ``import`` or ``from`` from a ``macro`` tag, the imported macros
are only defined in the current macro and they override macros defined at the
template level with the same names.

.. note::

Before Twig 2.11, it was possible to use macros imported in a block in a
"sub-block". When upgrading to 2.11, you need to either move the import in
the global scope or reimport the macros explicitly in the "sub-blocks".

Checking if a Macro is defined
------------------------------

Expand Down

0 comments on commit ee7be2e

Please sign in to comment.