{% with variant=variant|default:"default" removable=removable|default:False %} {% if href %} {% if icon %} {{ icon|safe }} {% endif %} {{ text }} {% if removable %} {% endif %} {% if href %} {% else %} {% endif %} {% endwith %}