{{ $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 }}
{{- .Inner | string -}}
{{ end }}{{ end }}