{{- range readDir . }} {{- $path := path.Join $ .Name }} {{- if .IsDir }} {{- partial "filelist.html" $path }} {{- else }} {{- printf "%s\n" $path }} {{- end }} {{- end -}}