aboutsummaryrefslogtreecommitdiffstats
path: root/testing/templates
diff options
context:
space:
mode:
authorLibravatar bott <mhpoin@gmail.com>2018-09-02 18:46:45 +0200
committerLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2018-09-02 19:02:22 +0200
commitdfb7cea03794ead892527e19f883dc8a3e784bc7 (patch)
tree0e36679782e5ac02be167a78b67d8a90ce65644b /testing/templates
parent6aa485ec0892125e9b67085afb400bc9e27e6a8d (diff)
downloadaskama-dfb7cea03794ead892527e19f883dc8a3e784bc7.tar.gz
askama-dfb7cea03794ead892527e19f883dc8a3e784bc7.tar.bz2
askama-dfb7cea03794ead892527e19f883dc8a3e784bc7.zip
Fix multiple nesting in macro calls into different scopes
Diffstat (limited to 'testing/templates')
-rw-r--r--testing/templates/nested-macro.html8
1 files changed, 6 insertions, 2 deletions
diff --git a/testing/templates/nested-macro.html b/testing/templates/nested-macro.html
index 4a40cd9..5030d59 100644
--- a/testing/templates/nested-macro.html
+++ b/testing/templates/nested-macro.html
@@ -1,7 +1,11 @@
-{%- macro child() -%}
+{%- macro child0() -%}
foo
{%- endmacro -%}
+{%- macro child1() -%}
+ {% call child0() %}
+{%- endmacro -%}
+
{%- macro parent() -%}
- {% call child() %}
+ {% call child1() %}
{%- endmacro -%}