Templkate
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Kekskurse 2022-01-15 01:00:03 +01:00
parent 9f0b0392c5
commit 9df635ebe9
Signed by: kekskurse
GPG key ID: 728ACCB59341E7E4

View file

@ -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"))