Skip to content

Commit

Permalink
minor #3050 Add a doc note (fabpot)
Browse files Browse the repository at this point in the history
This PR was merged into the 2.x branch.

Discussion
----------

Add a doc note

closes #3045

Commits
-------

ee7be2e added a doc note
  • Loading branch information
fabpot committed Jun 4, 2019
2 parents eb9a3e2 + ee7be2e commit 26a0e26
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 26a0e26

Please sign in to comment.