This commit is contained in:
crapStone 2023-11-16 00:28:26 +01:00
parent 89d8cfae9e
commit 2eaa9f82c2
No known key found for this signature in database
GPG Key ID: D74B82E7CDD863FE
1 changed files with 4 additions and 2 deletions

View File

@ -13,8 +13,10 @@ import (
//go:embed templates/error.html
var errorPage string
var errorTemplate = template.Must(template.New("error").Parse(errorPage))
var sanitizer = createBlueMondayPolicy()
var (
errorTemplate = template.Must(template.New("error").Parse(errorPage))
sanitizer = createBlueMondayPolicy()
)
type TemplateContext struct {
StatusCode int