acton-htmx 1.0.0-beta.7

Opinionated Rust web framework for HTMX applications
Documentation
1
2
3
4
5
6
7
8
9
10
<select name="{{ name }}" id="{{ id }}"
{%- if class %} class="{{ class }}"{% endif %}
{%- if required %} required{% endif %}
{%- if disabled %} disabled{% endif %}
{%- if multiple %} multiple{% endif %}
{%- for attr_name, attr_value in extra_attrs %} {{ attr_name }}="{{ attr_value }}"{% endfor %}>
{%- for option in options %}
<option value="{{ option.value }}"{% if option.selected %} selected{% endif %}{% if option.disabled %} disabled{% endif %}>{{ option.label }}</option>
{%- endfor %}
</select>