Simon Marsh
3970981f1b
All checks were successful
continuous-integration/drone/push Build is passing
11 lines
328 B
HTML
11 lines
328 B
HTML
{{$file := .Get "file"}}
|
|
<div class="gdoc-include">
|
|
{{- if eq (.Get "markdown") "true" -}}
|
|
{{- $file | readFile | markdownify -}}
|
|
{{- else if (.Get "language") -}}
|
|
{{- highlight ($file | readFile) (.Get "language") (default "linenos=table" (.Get "options")) -}}
|
|
{{- else -}}
|
|
{{ $file | readFile | safeHTML }}
|
|
{{- end -}}
|
|
</div>
|