mirror of
https://codeberg.org/Codeberg/pages-server.git
synced 2025-04-24 13:56:57 +00:00
fmt
This commit is contained in:
parent
89d8cfae9e
commit
2eaa9f82c2
1 changed files with 4 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue