aboutsummaryrefslogtreecommitdiffstats
path: root/testing/templates
diff options
context:
space:
mode:
Diffstat (limited to 'testing/templates')
-rw-r--r--testing/templates/deep-nested-macro.html2
-rw-r--r--testing/templates/nested-macro.html7
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 -%}