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
<article class="{{ self.class_name() }}"{% for attr in attrs %} {{ attr.name }}="{{ attr.value }}"{% endfor %}>
  {%- match kicker -%}
  {%- when Some with (text) -%}
  <span class="wf-card-kicker">{{ text }}</span>
  {%- when None -%}
  {%- endmatch -%}
  <h3 class="wf-card-title">{{ title }}</h3>
  <div class="wf-card-body">{{ body_html }}</div>
  {%- match foot_html -%}
  {%- when Some with (html) -%}
  <div class="wf-card-foot">{{ html }}</div>
  {%- when None -%}
  {%- endmatch -%}
</article>