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