collections.Delimit
對切片進行分隔處理:
{{ $s := slice "b" "a" "c" }}
{{ delimit $s ", " }} → b, a, c
{{ delimit $s ", " " and " }} → b, a and c
對映射進行分隔處理:
{{ $m := dict "b" 2 "a" 1 "c" 3 }}
{{ delimit $m ", " }} → 1, 2, 3
{{ delimit $m ", " " and " }} → 1, 2 and 3