filebrowser/assets/templates/single.tmpl

19 lines
280 B
Cheetah

{{ define "content" }}
<main class="container">
{{ if eq .Type "image" }}
<img src="{{.Base64}}">
{{ else if eq .Type "audio" }}
<audio src="{{.Base64}}">
</audio>
{{ else if eq .Type "video" }}
{{ else}}
<pre>{{ .Content }}</pre>
{{ end }}
</main>
{{ end }}