{{ $package := (index .Params 0) }} {{ $listname := (index .Params 1) }} {{ $list := (index (index .Site.Data.docs $package) $listname) }} {{ $fields := after 2 .Params }} {{ range $list }} {{ range $k, $v := . }} {{ $.Scratch.Set $k $v }} {{ end }} {{ end }} {{ range $i, $_ := $fields }} {{ $.Scratch.Set "i" $i }} {{ $field := (index $fields ($.Scratch.Get "i") ) }} {{ range $list }} {{ end }} {{ end }}
{{ $field }} {{ index . $field }}