wavefunk-ui 0.1.5

Askama and htmx UI component base for Wave Funk Rust applications.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
<ul{% if !nested %} class="{{ self.class_name() }}"{% endif %}>
  {%- for item in items -%}
  <li{% if !item.item_class().is_empty() %} class="{{ item.item_class() }}"{% endif %}>
    <span class="{{ item.label_class() }}">{{ item.label }}</span>
    {%- match item.children_html -%}
    {%- when Some with (html) -%}
    {{ html }}
    {%- when None -%}
    {%- endmatch -%}
  </li>
  {%- endfor -%}
</ul>