From f4065b09b91f5d00efa5644915cdd83bfb7d393a Mon Sep 17 00:00:00 2001 From: Christian Vallentin Date: Tue, 1 Dec 2020 09:25:36 +0100 Subject: Fixed implicit borrow of expressions (#390) --- testing/templates/macro-short-circuit.html | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 testing/templates/macro-short-circuit.html (limited to 'testing/templates/macro-short-circuit.html') diff --git a/testing/templates/macro-short-circuit.html b/testing/templates/macro-short-circuit.html new file mode 100644 index 0000000..4a19b86 --- /dev/null +++ b/testing/templates/macro-short-circuit.html @@ -0,0 +1,9 @@ +{% macro foo(b) -%} + {{ b }} +{%- endmacro -%} +{% call foo(true) -%} +{% call foo(true && true) -%} +{% call foo(true && true && true) -%} +{% call foo(false) -%} +{% call foo(false || true) -%} +{% call foo(false || false || true) -%} -- cgit