{{ .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}}
{{ if $title }}

{{ $title }}

{{ end }}
{{ if $lang }} {{ (print "```" $lang "\n" (.Scratch.Get "content") "```") | markdownify }} {{ else }}
{{ .Scratch.Get "content" | safeHTML }}
{{ end }}