{{- $path := "" }} {{- if $formPath := (invoke "FormValue" .C "path") }} {{- $path = $formPath }} {{- else if $pathParam := (invoke "Param" .C "path") }} {{- $path = $pathParam }} {{- end }} {{- if or (not $path) (ne (slice $path 0 1) "/") }} {{- $path = (sprintf "/%s" $path) }} {{- end}} {{ if (call .Config).FS.Serve }} {{ else }} {{ end }}