{{- /* This template applies an ID to an SVG from the Heroicons set to be used with `` element. */ -}} {{- $match := "^\\s*" }} {{- $name := default .id .name }} {{- $icon := resources.Get (printf "svg/heroicons/24/solid/%s.svg" .id) }} {{- $replaceWith := printf `` $name }} {{- replaceRE $match $replaceWith $icon.Content | safeHTML -}}