🐛 fix(template): 自定义CSS

This commit is contained in:
naiba
2020-12-20 22:09:53 +08:00
parent 8323a26bad
commit fb770573d5
3 changed files with 4 additions and 4 deletions

View File

@@ -25,8 +25,8 @@ func ServeWeb(port uint) {
"tf": func(t time.Time) string {
return t.Format("2006年1月2号")
},
"css": func(s string) template.CSS {
return template.CSS(s)
"safe": func(s string) template.HTML {
return template.HTML(s)
},
"tag": func(s string) template.HTML {
return template.HTML(`<` + s + `>`)