{{ \$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 }}
::: {#{{ $file | urlize }} .code .relative}
{{- with \$file -}}
::: {.filename .san-serif .f6 .dib .lh-solid .pl2 .pv2}
{{ . }}
:::
{{- 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 }}
::: {#{{ . }} .code-copy-button with="" .get="" \"download\"="" {{="" end="" }}=""}
{{ \$inner := trim .Inner \"\\n\" \| safeHTML }} {{ if .Get \"nocode\"
}}{{ \$inner }}{{ else }}{{ with \$codeLang }}{{ highlight \$inner .
\"\" }}{{ else }}
{{ $inner }}
{{ end }}{{ end }}
:::
------------------------------------------------------------------------
:::
------------------------------------------------------------------------