{{- /* */ -}} {{- $url := .Get "url" -}} {{- $sep := .Get "sep" -}} {{- if .Get "class" -}} {{- /* */ -}} {{- $class := .Get "class" -}} {{- $.Scratch.Set "class" $class -}} {{- else -}} {{- /* */ -}} {{- $.Scratch.Set "class" "greyhead small smallfont fontcourier striped headleft captleft" -}} {{- end -}} {{- if .Get "caption" -}} {{- /* */ -}} {{- $caption := .Get "caption" -}} {{- $.Scratch.Set "caption" $caption -}} {{- end -}} {{- if .Get "sep" -}} {{- /* */ -}} {{- $sep := .Get "sep" -}} {{- $.Scratch.Set "delimiter" $sep -}} {{- else -}} {{- /* */ -}} {{- $.Scratch.Set "delimiter" "," -}} {{- end -}} {{ with resources.Get $url }} {{ $rows := .Content | transform.Unmarshal (dict "delimiter" ($.Scratch.Get "delimiter") ) }}
{{- if $.Scratch.Get "caption" -}} {{- "\n\t" | safeHTML -}} {{- end -}} {{- range $i, $r := $rows -}} {{- if eq $i 0 -}} {{- "\n\t" | safeHTML -}} {{- "\n\t\t" | safeHTML -}} {{- range $r -}} {{- end -}} {{- "\n\t" | safeHTML -}} {{- "\n\t" | safeHTML -}} {{- else -}} {{- "\n\t\t" | safeHTML -}} {{- range $r -}} {{- end -}} {{- end -}} {{- end }}
{{- $.Scratch.Get "caption" -}}
{{- . -}}
{{- . -}}
{{ end }}