Server static files
This commit is contained in:
parent
2ba0a0024e
commit
73a1c8bc02
7 changed files with 52 additions and 14 deletions
|
|
@ -13,8 +13,8 @@ type Ctx map[string]any
|
|||
|
||||
func RenderTemplate(w http.ResponseWriter, tmpl string, context any) error {
|
||||
files := []string{
|
||||
filepath.Join(conf.Conf.TemplatesDir, conf.Conf.BaseTemplate),
|
||||
filepath.Join(conf.Conf.TemplatesDir, tmpl),
|
||||
filepath.Join(conf.Conf.Templates.Dir, conf.Conf.Templates.Base),
|
||||
filepath.Join(conf.Conf.Templates.Dir, tmpl),
|
||||
}
|
||||
|
||||
for _, f := range files {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue