Templkate
continuous-integration/drone/push Build is passing Details

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
1 changed files with 5 additions and 1 deletions

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