mirror of
https://github.com/glanceapp/glance.git
synced 2025-06-20 18:07:59 +02:00
Add safeHTML function
This commit is contained in:
parent
af04605d7d
commit
1ace129a58
@ -21,6 +21,9 @@ var globalTemplateFunctions = template.FuncMap{
|
||||
"safeURL": func(str string) template.URL {
|
||||
return template.URL(str)
|
||||
},
|
||||
"safeHTML": func(str string) template.HTML {
|
||||
return template.HTML(str)
|
||||
},
|
||||
"absInt": func(i int) int {
|
||||
return int(math.Abs(float64(i)))
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user