From 49252d2457f280026c020d0df46733578eb959a5 Mon Sep 17 00:00:00 2001 From: Ryan Kelly Date: Mon, 21 Jun 2021 16:35:57 +1000 Subject: Fix code generation for macro calls that store args in variables. --- testing/templates/nested-macro-args.html | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 testing/templates/nested-macro-args.html (limited to 'testing/templates') diff --git a/testing/templates/nested-macro-args.html b/testing/templates/nested-macro-args.html new file mode 100644 index 0000000..03826f8 --- /dev/null +++ b/testing/templates/nested-macro-args.html @@ -0,0 +1,9 @@ +{%- macro outer(first) -%} +{%- call inner(first, "second") -%} +{%- endmacro -%} + +{%- macro inner(first, second) -%} +{{ first }} {{ second }} +{%- endmacro -%} + +{%- call outer("first") -%} -- cgit