{# components/button.html #} {% if icon %} {% if icon_position == "left" %} {% if icon_type == "fa" %} {% elif icon_type == "unicode" %} {% if "" in icon %} {{ icon|safe }} {% else %} {{ icon }}; {% endif %} {% else %} {{ icon }} {% endif %} {% endif %} {% endif %} {{ label }} {% if icon %} {% if icon_position == "right" %} {% if icon_type == "fa" %} {% elif icon_type == "unicode" %} {% if "" in icon %} {{ icon|safe }} {% else %} {{ icon }}; {% endif %} {% else %} {{ icon }} {% endif %} {% endif %} {% endif %}