It is already elsewhere discussed on stackoverflow that you can print a list separated by comma, as follows:
{{ range $index, $element := .TeamMembers}}
{{if $index}},{{end}}
{{$element.Name}}
{{end}}
Is there an easy solution for when you need a list separator that is different for the last item, to include an "or":
{name}, {name}, {name}, or {name}
This is to allow, for example, creation of formatted sentences such as:
The members of this team are Bob, Jane, and Mike.
Any template code I can workout ends up extremely verbose and complicated.