wavefunk-ui 0.1.5

Askama and htmx UI component base for Wave Funk Rust applications.
Documentation
1
2
3
4
5
6
{%- match href -%}
{%- when Some with (url) -%}
<a class="{{ self.class_name() }}" href="{{ url }}"{% for attr in attrs %} {{ attr.name }}="{{ attr.value }}"{% endfor %}>{{ label }}</a>
{%- when None -%}
<button class="{{ self.class_name() }}" type="{{ button_type }}"{% if disabled %} disabled{% endif %}{% for attr in attrs %} {{ attr.name }}="{{ attr.value }}"{% endfor %}>{{ label }}</button>
{%- endmatch -%}