How do I access an array item (e.g. a[2]) in templates?
Whenever I do this I get "bad character U+005B '['"
{{ .a[2] }}
You need to use the index template function.
index
{{index .a 2}}