$
to access "root level" variables in golang templates
{{ range .items }}
{{ .variable }}
{{ $.variable }}
{{ end }}
Vytvořeno
3y
|
23. 1. 2022 18:40:48
Chcete-li přidat komentář, přihlaste se
$
to access "root level" variables in golang templates
{{ range .items }}
{{ .variable }}
{{ $.variable }}
{{ end }}