{% macro button_content(icon_name, label, icon_pos) %}
{% if icon_pos != "icon-right" and icon_name %}
{% include 'svg/' + icon_name + '.svg' ignore missing %}
{% endif %} {% if label %}
{{ label }}
{% endif %} {% if icon_pos == "icon-right" %}
{% include 'svg/' + icon_name + '.svg' ignore missing %}
{% endif %}
{% endmacro %} {% macro link(icon_name, label, href, classes, title, id, icon_pos) %} {% set target = "_blank" if href.startswith('http') else "_self" %} {{ button_content(icon_name, label, icon_pos) }} {% endmacro %} {% macro button(icon_name, label, onclick, classes, title, id, icon_pos) %} {% endmacro %}