ui.util.icon

Map standard icon name(FontAwesome) to the icon name from theme's icon library. For eample, if theme created with Theme(..., icon_map={"home": "building"}), call of the function with the home will return buildingg.

This function mainly used by the icon macro.

{%- call ui.util.call(show_example) -%} {%- raw %} {%- macro icon(name) -%} {{ ui.util.icon(name) }} {%- endmacro %} {{ icon("home") }} {%- endraw %} {%- endcall %}