{{- $collection := index .Data (.Feature.collection | default "features" ) -}} {{- $data := index $collection .Feature.feature }} {{- if eq .Feature.style "list" -}}
{{ range $data }} {{- if reflect.IsMap . -}} {{- range .list -}}
  • {{.}}
  • {{- end -}} {{- else -}}
  • {{.}}
  • {{- end -}} {{ end }}
    {{- else if eq .Feature.style "compact" -}}
    {{ range $data }}
    {{ .groupName }}
    {{- range .list -}} {{.}} {{- end -}}
    {{ end }}
    {{- else -}} {{ range $data }}

    {{ .groupName }}

    {{ range .list }}
  • {{.}}
  • {{ end }}
    {{ end }} {{- end -}}