mirror of https://github.com/onweru/compose.git

weru
30.02.2020 20d7b580be202c69cbadb4b82f3525f183b61dfe
1
2
3
4
5
6
7
8
{{$file := .Get "file"}}
{{- if eq (.Get "markdown") "true" -}}
{{- $file  | readFile | markdownify -}}
{{- else if  (.Get "highlight") -}}
{{-  highlight ($file  | readFile) (.Get "highlight") "" -}}
{{- else -}}
{{ $file  | readFile | safeHTML }}
{{- end -}}