$
to access "root level" variables in golang templates
{{ range .items }}
{{ .variable }}
{{ $.variable }}
{{ end }}
Vytvorené
4y
|
23. 1. 2022, 18:40:48
Ak chcete pridať komentár, prihláste sa
$
to access "root level" variables in golang templates
{{ range .items }}
{{ .variable }}
{{ $.variable }}
{{ end }}