{{ template "header" .}} {{ template "gist_header" .}} {{ if .files }}
{{ range $file := .files }} {{ $csv := csvFile $file }}
{{ $file.Filename }} Raw
{{ if $file.Truncated }}
This file has been truncated. View the full file.
{{ end }} {{ if and (not $csv) (isCsv $file.Filename) }}
This file is not a valid CSV file.
{{ end }}
{{ if $csv }} {{ range $csv.Header }} {{ end }} {{ range $csv.Rows }} {{ range . }} {{ end }} {{ end }}
{{ . }}
{{ . }}
{{ else if isMarkdown $file.Filename }}
{{ $file.Content }}
{{ else }}
{{ $fileslug := slug $file.Filename }} {{ if ne $file.Content "" }} {{ $ii := "1" }} {{ $i := toInt $ii }} {{ range $line := lines $file.Content }}{{ $i = inc $i }}{{ end }}
{{$i}}{{ $line }}
{{ end }}
{{ end }}
{{ end }}
{{ else }}

No content

{{ end }} {{ template "gist_footer" .}} {{ template "footer" .}}