10 lines
135 B
HTML
10 lines
135 B
HTML
{% macro get_or_default(val, def) %}
|
|
|
|
{% match val %}
|
|
{% when Some with (v) %}
|
|
{{v}}
|
|
{% else %}
|
|
{{def}}
|
|
{% endmatch %}
|
|
|
|
{% endmacro %}
|