askama/testing/templates/macro-short-circuit.html
2025-05-22 23:07:27 +02:00

10 lines
317 B
HTML

{% macro foo(b) -%}
{{ b }}
{%- endmacro -%}
{% call foo(true) -%}{% endcall -%}
{% call foo(true && true) -%}{% endcall -%}
{% call foo(true && true && true) -%}{% endcall -%}
{% call foo(false) -%}{% endcall -%}
{% call foo(false || true) -%}{% endcall -%}
{% call foo(false || false || true) -%}{% endcall -%}