This commit is contained in:
parent
9f0b0392c5
commit
9df635ebe9
1 changed files with 5 additions and 1 deletions
6
main.go
6
main.go
|
@ -123,9 +123,13 @@ func main() {
|
|||
FileSystem: http.FS(public),
|
||||
},
|
||||
))
|
||||
templateFS, err := template.EmbedFS(templates, "templates/", []string{".tmpl"})
|
||||
if err != nil {
|
||||
log.Fatal().Err(err).Msg("Cant creat EmbedFS for templates")
|
||||
}
|
||||
f.Use(template.Templater(
|
||||
template.Options{
|
||||
|
||||
FileSystem: templateFS,
|
||||
},
|
||||
))
|
||||
redisDB, err := strconv.Atoi(os.Getenv("REDIS_DB"))
|
||||
|
|
Loading…
Reference in a new issue