what2watch/templates/macros.html

11 lines
135 B
HTML
Raw Normal View History

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