 directory */}}

{{ if eq (.Scratch.Get "fparameter" | printf "%.1s") "/" }}
  {{ $.Scratch.Set "filepath" ($.Scratch.Get "fparameter") }}
{{ else }}
  {{ $.Scratch.Set "filepath" "/" }}
  {{ $.Scratch.Add "filepath" $.Page.File.Dir }}
  {{ $.Scratch.Add "filepath" ($.Scratch.Get "fparameter") }}
{{ end }}


{{/* If the file exists, read it and highlight it if it's code. Throw an error
if the file is not found */}}

{{ if fileExists ($.Scratch.Get "filepath") }}
  {{ if eq (.Get "code") "true" }}
    {{- hi