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
13
14
15
16
17
<title>{{ title }}</title>
<span id="page-title" hidden>{{ title }}</span>
{%- match content_id -%}
{%- when Some with (id) %}
<div id="{{ id }}">
  {{ content_html }}
</div>
{%- when None %}
{{ content_html }}
{%- endmatch -%}
{%- match nav_html -%}
{%- when Some with (html) %}
<nav class="wf-nav-list" id="{{ nav_target_id }}" hx-swap-oob="outerHTML">
  {{ html }}
</nav>
{%- when None -%}
{%- endmatch -%}