Is there something like a hasNext
on the range
iterator? E.g. for inserting commas between members of a list (but not at the end). Pseudocode:
{{ range something }}
{{ . }}
{{ if range.hasNext }}
,
{{ end }}
{{ end }}
I found something on paginator
but my range iterates over the result of a split
and is unrelated to pages.