Fix jinja2>=2.9 nested include vars (#35099)

This fixes a bug when parent's local vars where not available in nested
includes. The bug can only be seen with jinja>=2.9 which changes
how the variable scopes work.

Fixes #34886
This commit is contained in:
Martin Krizek
2018-02-07 10:58:29 +01:00
committed by GitHub
parent 9f9bfd819f
commit 63fdc3f08f
5 changed files with 52 additions and 22 deletions

View File

@@ -0,0 +1,3 @@
{% if par_var is defined %}
{% include 'for_loop_include_nested.j2' %}
{% endif %}