aboutsummaryrefslogtreecommitdiffstats
path: root/docs/src/layouts/shortcodes/readfile.html
blob: 6860b0f1115584776917124eda0539f412709881 (plain)
1
2
3
4
5
6
{{$file := .Get "file"}}
{{- if eq (.Get "markdown") "true" -}}
{{- $file  | readFile | markdownify -}}
{{- else -}}
{{ $file  | readFile | safeHTML }}
{{- end -}}