1
0
Fork 0

Add text/plain version

main
Ambrose Chua 2020-11-22 10:59:20 +08:00
parent b914999725
commit d08fea5afb
2 changed files with 20 additions and 2 deletions

View File

@ -1,2 +1,2 @@
{{.Status}} {{.Status | statusText | thisIsSafe}}
{{.Error | thisIsSafe}}
{{.Error.Error | thisIsSafe}}

View File

@ -1 +1,19 @@
TODO
{{- $app := .App -}}
{{- $t := .Req.Time -}}
{{- range .Req.Zones -}}
{{- $zoneName := . -}}
{{with resolveZone $app .}}
{{- if .Error}}
Unable to load zone "{{$zoneName | thisIsSafe}}". The zone could be invalid
{{/* */}}
{{- else -}}
{{- $zt := $t.In .Location}}
{{.Name | thisIsSafe}}
{{- if not .IsOffset }} {{.TimeOffset $t | formatOffset | thisIsSafe}}
{{- end}}
{{$zt.Format "2006-01-02"}}
{{$zt.Format "15:04"}}
{{/* */}}
{{- end -}}
{{- end -}}
{{- end -}}