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
<nav class="wf-pagination" aria-label="Pagination">
{%- for page in pages -%}
  {%- if page.ellipsis -%}
  <span class="ellipsis">{{ page.label }}</span>
  {%- else -%}
    {%- match page.href -%}
    {%- when Some with (href) -%}
    <a href="{{ href }}"{% if page.active %} class="is-active" aria-current="page"{% endif %}>{{ page.label }}</a>
    {%- when None -%}
    <button type="button"{% if page.active %} class="is-active"{% endif %}{% if page.disabled %} disabled{% endif %}>{{ page.label }}</button>
    {%- endmatch -%}
  {%- endif -%}
{%- endfor -%}
</nav>