Files
database_render/web/templates/builtin/field/text.html
2025-08-07 20:03:53 +08:00

17 lines
393 B
HTML

{{define "field-text"}}
<span class="text-gray-900">{{.Value}}</span>
{{end}}
{{define "field"}}
{{if eq .Type "time"}}
{{template "field-time" .}}
{{else if eq .Type "tag"}}
{{template "field-tag" .}}
{{else if eq .Type "markdown"}}
{{template "field-markdown" .}}
{{else if eq .Type "raw"}}
{{template "field-raw" .}}
{{else}}
{{template "field-text" .}}
{{end}}
{{end}}