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