$
to access "root level" variables in golang templates
{{ range .items }}
{{ .variable }}
{{ $.variable }}
{{ end }}
Erstellt
3y
|
23.01.2022, 18:40:48
Melden Sie sich an, um einen Kommentar hinzuzufügen
$
to access "root level" variables in golang templates
{{ range .items }}
{{ .variable }}
{{ $.variable }}
{{ end }}