{{ $id := .Get 0 }} {{- with $id -}} <svg class="icon {{ . }}"><use xlink:href="#{{ . }}"></use></svg> {{- end -}}