Add label macro

This commit is contained in:
leigh-mil
2019-10-21 14:48:44 -04:00
parent b1a18f83f3
commit 750ea6568b
5 changed files with 14 additions and 3 deletions

View File

@@ -0,0 +1,8 @@
{% from "components/icon.html" import Icon %}
{% macro Label(icon_name, text, type=None, classes="") -%}
<span class='label {% if type %}label--{{ type }}{% endif %} {{ classes }}'>
{{ Icon(icon_name) }} {{ text }}
</span>
{%- endmacro %}