aboutsummaryrefslogtreecommitdiffstats
path: root/testing/templates/macro-import-str-cmp-macro.html
blob: a951f93db0f067cb5a83415fc8a871e58f4e261c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
{% 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 %}