queen/templates/macros.html
2024-02-25 16:34:32 -08:00

10 lines
135 B
HTML

{% macro get_or_default(val, def) %}
{% match val %}
{% when Some with (v) %}
{{v}}
{% else %}
{{def}}
{% endmatch %}
{% endmacro %}