aboutsummaryrefslogtreecommitdiffstats
path: root/testing/templates/macro-short-circuit.html
diff options
context:
space:
mode:
authorLibravatar Christian Vallentin <vallentinsource@gmail.com>2020-12-01 09:25:36 +0100
committerLibravatar GitHub <noreply@github.com>2020-12-01 09:25:36 +0100
commitf4065b09b91f5d00efa5644915cdd83bfb7d393a (patch)
tree8197d60f39068af657ce827120ea35ac467c7b0a /testing/templates/macro-short-circuit.html
parent8603298dc8c8c80d95199e1f42ec6951264322f1 (diff)
downloadaskama-f4065b09b91f5d00efa5644915cdd83bfb7d393a.tar.gz
askama-f4065b09b91f5d00efa5644915cdd83bfb7d393a.tar.bz2
askama-f4065b09b91f5d00efa5644915cdd83bfb7d393a.zip
Fixed implicit borrow of expressions (#390)
Diffstat (limited to '')
-rw-r--r--testing/templates/macro-short-circuit.html9
1 files changed, 9 insertions, 0 deletions
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) -%}