{{ .Scratch.Set "code" "" }} {{ .Scratch.Set "content" "" }} {{ .Scratch.Set "identifier" "" }} {{ .Scratch.Set "collapse" "" }} {{ $identifier := "" }} {{ $title := .Get "title" }} {{ $lang := .Get "lang" }} {{ $filepath := .Get "file"}} {{ $collapse := .Get "collapse"}} {{ if ($filepath) }} {{ .Scratch.Set "content" ($filepath | readFile) }} {{ .Scratch.Set "identifier" (first 10 (md5 (.Scratch.Get "content"))) }} {{ else }} "missing file input" {{ end}}