I’m not quite clear how I do nested iteration in Hugo ?
Ideally I also need to keep track of where I am on the outer array, since the inner arrays are grouped by a key and so I need display items in the same group context (i.e. its not just a case of e.g. printing out all the foo). In practical terms I’m building a custom table, and so each group would be within one row (<tr></tr>).
Lacking example aside, I think you essentially answered the question that fortunately the Hugo unmarshal is not recursive and therefore I just nest the range or with tags …
{{ with unmarshal . }}
{{ $data = . }}
{{ end }}
{{ range $data }}
{{ range . }}
{{end}}
{{end}}