{{ .Scratch.Set "code1" "" }} {{ .Scratch.Set "content1" "" }} {{ .Scratch.Set "ident1" "" }} {{ $title1 := .Get "title1" }} {{ $lang1 := .Get "lang1" }} {{ $file1 := .Get "file1"}} {{ if ($file1) }} {{ .Scratch.Set "content1" ($file1 | readFile) }} {{ .Scratch.Set "ident1" (first 10 (md5 (.Scratch.Get "content1"))) }} {{ else }} "missing content1" {{ end}} {{ .Scratch.Set "content2" "" }} {{ .Scratch.Set "ident2" "" }} {{ $title2 := .Get "title2" }} {{ $lang2 := .Get "lang2" }} {{ $file2 := .Get "file2"}} {{ if ($file2) }} {{ .Scratch.Set "content2" ($file2 | readFile) }} {{ .Scratch.Set "ident2" (first 10 (md5 (.Scratch.Get "content2"))) }} {{ else }} "missing content2" {{ end}}
{{ if $title1 }}

{{ $title1 }}

{{ end }}
{{ if $lang1 }} {{ (print "```" $lang1 "\n" (.Scratch.Get "content1") "```") | markdownify }} {{ else }}
{{ .Scratch.Get "content1" | safeHTML }}
{{ end }}
{{ if $title2 }}

{{ $title2 }}

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