{{ $file := .Get "file" }} {{ $isHTML := strings.HasSuffix $file "html" }}
{{- with $file -}}
{{.}}
{{- end -}} {{ if ne (.Get "copy") "false" }} {{/* Functionality located within filesaver.js The copy here is located in the css with .copy class so it can be replaced with JS on success */}} {{end}}
{{ if .Get "nocode" }}{{ .Inner }}{{ else }}{{ if $isHTML }}{{- highlight .Inner "html" "" | -}}{{ else }}
{{- .Inner | string -}}
{{ end }}{{ end }}