Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a doc note #3050

Merged
merged 1 commit into from Jun 4, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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