diff options
author | bott <mhpoin@gmail.com> | 2018-09-01 20:19:15 +0200 |
---|---|---|
committer | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2018-09-02 16:01:20 +0200 |
commit | f29c12f469ccb76ed06aff6d6dc037dfd7dd2406 (patch) | |
tree | d9b011860a988b8fa4a6f1853fd822dc99607843 /testing/templates | |
parent | 16b577e3070ca935180652e7ce24563bd396babc (diff) | |
download | askama-f29c12f469ccb76ed06aff6d6dc037dfd7dd2406.tar.gz askama-f29c12f469ccb76ed06aff6d6dc037dfd7dd2406.tar.bz2 askama-f29c12f469ccb76ed06aff6d6dc037dfd7dd2406.zip |
Add test for nested macro calls into different scope
Diffstat (limited to '')
-rw-r--r-- | testing/templates/deep-nested-macro.html | 2 | ||||
-rw-r--r-- | testing/templates/nested-macro.html | 7 |
2 files changed, 9 insertions, 0 deletions
diff --git a/testing/templates/deep-nested-macro.html b/testing/templates/deep-nested-macro.html new file mode 100644 index 0000000..39e8e91 --- /dev/null +++ b/testing/templates/deep-nested-macro.html @@ -0,0 +1,2 @@ +{%- import "nested-macro.html" as libk -%} +{%- call libk::parent() -%} diff --git a/testing/templates/nested-macro.html b/testing/templates/nested-macro.html new file mode 100644 index 0000000..4a40cd9 --- /dev/null +++ b/testing/templates/nested-macro.html @@ -0,0 +1,7 @@ +{%- macro child() -%} + foo +{%- endmacro -%} + +{%- macro parent() -%} + {% call child() %} +{%- endmacro -%} |