aboutsummaryrefslogtreecommitdiff
path: root/CHANGES.rst
diff options
context:
space:
mode:
authorAmy <leiamy12@gmail.com>2020-06-22 09:54:08 -0400
committerDavid Lord <davidism@gmail.com>2020-06-22 09:56:10 -0700
commitcc792d8c918b44c3c6815cced07b0a334a2fed42 (patch)
tree350a8732bfa8c222e39c82640197b8f788df7a91 /CHANGES.rst
parentcd88dec8ea7c5aa13fdf120481cc989be2c7916f (diff)
downloadjinja-cc792d8c918b44c3c6815cced07b0a334a2fed42.tar.gz
imported templates can see the current globals
_get_default_module takes an optional context to indicate that the template is imported. If there are differences between the environment and rendered template globals, a new module is used for the imported template.
Diffstat (limited to 'CHANGES.rst')
-rw-r--r--CHANGES.rst2
1 files changed, 2 insertions, 0 deletions
diff --git a/CHANGES.rst b/CHANGES.rst
index 57de4ae5..d42f213c 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -11,6 +11,8 @@ Unreleased
- Remove code that was marked deprecated.
- Use :pep:`451` API to load templates with
:class:`~loaders.PackageLoader`. :issue:`1168`
+- Fix a bug that caused imported macros to not have access to the
+ current template's globals. :issue:`688`
Version 2.11.2