Albirew/nyaa-pantsu
Archivé
1
0
Bifurcation 0

Added a function to not have characters encoded by go template

Cette révision appartient à :
akuma06 2017-05-10 22:03:57 +02:00
Parent 21a2e70692
révision b2ae3b4ac1

Voir le fichier

@ -70,4 +70,7 @@ var FuncMap = template.FuncMap{
"HasAdmin": userPermission.HasAdmin, "HasAdmin": userPermission.HasAdmin,
"GetRole": userPermission.GetRole, "GetRole": userPermission.GetRole,
"IsFollower": userPermission.IsFollower, "IsFollower": userPermission.IsFollower,
"NoEncode": func(str string) template.HTML {
return template.HTML(str)
},
} }