matrix.org/templates/macros/util.html

8 lines
351 B
HTML

{% macro current_class(if_path_starts_with) -%}
{% if current_path and current_path is starting_with(if_path_starts_with) %}current{% endif %}
{%- endmacro current_class %}
{% macro current_checked(if_path_starts_with) -%}
{% if current_path and current_path is starting_with(if_path_starts_with) %}checked{% endif %}
{%- endmacro current_checked %}