From 4f2176a3ad2d174c40617c9f3af13b6bd8270b29 Mon Sep 17 00:00:00 2001 From: bott Date: Fri, 7 Sep 2018 19:28:21 +0200 Subject: Fix deep nested imports in macro calls --- testing/templates/deep-import-child.html | 4 ++++ testing/templates/deep-import-parent.html | 2 ++ testing/templates/deep-nested-macro.html | 4 ++-- 3 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 testing/templates/deep-import-child.html create mode 100644 testing/templates/deep-import-parent.html (limited to 'testing/templates') diff --git a/testing/templates/deep-import-child.html b/testing/templates/deep-import-child.html new file mode 100644 index 0000000..268d6d0 --- /dev/null +++ b/testing/templates/deep-import-child.html @@ -0,0 +1,4 @@ +{%- import "nested-macro.html" as libi -%} +{%- macro parent() -%} + {% call libi::parent() %} +{%- endmacro -%} diff --git a/testing/templates/deep-import-parent.html b/testing/templates/deep-import-parent.html new file mode 100644 index 0000000..6aa6009 --- /dev/null +++ b/testing/templates/deep-import-parent.html @@ -0,0 +1,2 @@ +{%- import "deep-import-child.html" as libj -%} +{% call libj::parent() %} diff --git a/testing/templates/deep-nested-macro.html b/testing/templates/deep-nested-macro.html index 39e8e91..c34dd5f 100644 --- a/testing/templates/deep-nested-macro.html +++ b/testing/templates/deep-nested-macro.html @@ -1,2 +1,2 @@ -{%- import "nested-macro.html" as libk -%} -{%- call libk::parent() -%} +{%- import "nested-macro.html" as libi -%} +{%- call libi::parent() -%} -- cgit