{{ .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}} {{ .Scratch.Set "content3" "" }} {{ .Scratch.Set "ident3" "" }} {{ $title3 := .Get "title3" }} {{ $lang3 := .Get "lang3" }} {{ $file3 := .Get "file3"}} {{ if ($file3) }} {{ .Scratch.Set "content3" ($file3 | readFile) }} {{ .Scratch.Set "ident3" (first 10 (md5 (.Scratch.Get "content3"))) }} {{ else }} "missing content3" {{ end}}