{{- $codeLang := or (.Get "lang") "" }}
{{ if (.Get "copy") }} {{ end }} {{- with .Get "file" -}} {{- if not $codeLang }} {{- $ext := strings.TrimPrefix "." (path.Ext .) }} {{- $codeLang = cond (eq $ext "html") "go-html-template" $ext }} {{- end }}
{{ . }}
{{- end -}}
{{ $inner := trim .Inner "\n" | safeHTML }} {{ if .Get "nocode" }} {{ $inner }} {{ else }} {{ with $codeLang }} {{ highlight $inner . "" }} {{ else }}
{{ $inner }}
        
{{ end }} {{ end }}