housekeeping
This commit is contained in:
parent
1e421e07cd
commit
12551d12b3
|
@ -21,15 +21,15 @@ var Config struct {
|
||||||
bind string
|
bind string
|
||||||
filesDir string
|
filesDir string
|
||||||
metaDir string
|
metaDir string
|
||||||
noLogs bool
|
|
||||||
allowHotlink bool
|
|
||||||
siteName string
|
siteName string
|
||||||
siteURL string
|
siteURL string
|
||||||
fastcgi bool
|
|
||||||
remoteUploads bool
|
|
||||||
contentSecurityPolicy string
|
contentSecurityPolicy string
|
||||||
fileContentSecurityPolicy string
|
fileContentSecurityPolicy string
|
||||||
xFrameOptions string
|
xFrameOptions string
|
||||||
|
noLogs bool
|
||||||
|
allowHotlink bool
|
||||||
|
fastcgi bool
|
||||||
|
remoteUploads bool
|
||||||
}
|
}
|
||||||
|
|
||||||
var Templates = make(map[string]*pongo2.Template)
|
var Templates = make(map[string]*pongo2.Template)
|
||||||
|
|
|
@ -41,8 +41,7 @@ func (fs *Pongo2Loader) Abs(base, name string) string {
|
||||||
}
|
}
|
||||||
|
|
||||||
func populateTemplatesMap(tSet *pongo2.TemplateSet, tMap map[string]*pongo2.Template) error {
|
func populateTemplatesMap(tSet *pongo2.TemplateSet, tMap map[string]*pongo2.Template) error {
|
||||||
|
templates := []string{
|
||||||
templates := [...]string{
|
|
||||||
"index.html",
|
"index.html",
|
||||||
"paste.html",
|
"paste.html",
|
||||||
"404.html",
|
"404.html",
|
||||||
|
|
Loading…
Reference in New Issue