{% macro render_icon(name, color=None, title=None, filename='icons') -%}
<svg class="icon-{{ name }}"
  {%- if color is not none %} style="fill: {{ color }}"{% endif -%}
  {%- if title is not none %} title="{{ title }}"{% endif -%}
>
  <use xlink:href="{{ url_for('core.static', filename='style/%s.svg'|format(filename)) }}#icon-{{ name }}"></use>
</svg>
{%- endmacro %}

{% macro render_icon(name, color=None, title=None, filename='icons') -%}
<svg class="icon-{{ name }}"
  {%- if color is not none %} style="fill: {{ color }}"{% endif -%}
  {%- if title is not none %} title="{{ title }}"{% endif -%}
><use xlink:href="{{ url_for('core.static', filename='style/%s.svg'|format(filename)) }}#icon-{{ name }}"/></svg>
{%- endmacro %}

Make output of template macro to render an SVG icon more compact
Make output of template macro to render an SVG icon more compact
