Reorganize macros into separate component files
Replace a few old UI Module instances with macros
This commit is contained in:
6
templates/components/icon.html
Normal file
6
templates/components/icon.html
Normal file
@@ -0,0 +1,6 @@
|
||||
{% macro Icon(name, classes="") -%}
|
||||
{% autoescape false %}
|
||||
<span class="icon icon--{{name}} {{classes}}" aria-hidden="true">{{ name | iconSvg }}</span>
|
||||
{% endautoescape %}
|
||||
{%- endmacro %}
|
||||
|
Reference in New Issue
Block a user