queen/templates/macros.html

11 lines
135 B
HTML
Raw Permalink Normal View History

2024-02-26 00:34:32 +00:00
{% macro get_or_default(val, def) %}
{% match val %}
{% when Some with (v) %}
{{v}}
{% else %}
{{def}}
{% endmatch %}
{% endmacro %}