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
<div class="wf-btn-split"{% for attr in attrs %} {{ attr.name }}="{{ attr.value }}"{% endfor %}>
{{ action }}
{%- match menu.href -%}
{%- when Some with (url) -%}
<a class="wf-btn caret" href="{{ url }}"{% for attr in menu.attrs %} {{ attr.name }}="{{ attr.value }}"{% endfor %}>{{ menu.label }}</a>
{%- when None -%}
<button class="wf-btn caret" type="{{ menu.button_type }}"{% if menu.disabled %} disabled{% endif %}{% for attr in menu.attrs %} {{ attr.name }}="{{ attr.value }}"{% endfor %}>{{ menu.label }}</button>
{%- endmatch -%}
</div>