{%- macro badge(content, style="primary") -%} {%- set class = "badge bg-" ~ style ~ ' text-bg-' ~ style -%} {{- content -}} {%- endmacro %} {%- macro button(content, href, icon, size, type="button", style="primary") -%} {%- set prefix = ui.icon(icon) if icon else "" -%} {%- set class = "btn btn-" ~ style ~ ((' btn-' ~ size) if size else "") -%} {%- do kwargs.setdefault("attrs", {}).setdefault("class", class) -%} {%- if href -%} {{ ui.link(prefix ~ content, href=href, **kwargs) }} {%- else -%} {%- endif %} {%- endmacro %} {%- macro icon(name, style=none) -%} {%- set base_class = "fa-{}".format(style) if style else "fa" -%} {%- endmacro %} {%- macro tag(content, href) -%} {%- if href -%} {{ content }} {%- else -%} {{ content }} {%- endif %} {%- endmacro %} {%- macro tab(content, active, href, id) -%} {%- endmacro %} {%- macro empty(content) -%}

{{ content }}

{%- endmacro %}