mirror of
https://github.com/askama-rs/askama.git
synced 2025-09-28 13:30:59 +00:00

This PR adds the tests by @msrd0 <git@msrd0.de> that failed before. The error was fixed somewhen between f23162a and now, so these tests serve to prevent regressions in the future. I simplified the tests very slightly to omit whitespaces in the output.
14 lines
253 B
HTML
14 lines
253 B
HTML
{% macro strcmp0(s, other) -%}
|
|
{%- if s == "foo" -%}
|
|
foo
|
|
{%- else if s == other -%}
|
|
other
|
|
{%- else -%}
|
|
neither
|
|
{%- endif -%}
|
|
{% endmacro %}
|
|
|
|
{% macro strcmp(s) %}
|
|
{%- call strcmp0(s, "bar") -%}
|
|
{% endmacro %}
|