{{ $file := .Get "file" }} {{ $.Scratch.Set "codeLang" "" }} {{ $suffix := findRE "(\\.[^.]+)$" $file 1 }} {{ with $suffix }} {{ $.Scratch.Set "codeLang" (index . 0 | strings.TrimPrefix ".") }} {{ end }} {{ with .Get "codeLang" }}{{ $.Scratch.Set "codeLang" . }}{{ end }} {{ if eq (.Scratch.Get "codeLang") "html"}} {{ $.Scratch.Set "codeLang" "go-html-template" }} {{ end }}
{{- .Inner | string -}}
{{ end }}{{ end }}