{{ $slug := ((.Context).Value "params").Slug }} {{ $file := (.Context).Value "file-data" }} {{ $csrfToken := (.Context).Value "csrfToken" }} {{ template "header" . }} {{ if ($file).Error }}

File Error

{{($file).Error}} {{ else }} {{ if ($file).IsDir }}

Directory: {{($file).Name}}

{{ else }}

File: {{($file).Name}}

{{end}}
/{{($file).Path}}
Danger Zone
{{ end }} {{ template "footer" . }}