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