diff --git a/main.go b/main.go index 3f19d0b..eea9f8a 100644 --- a/main.go +++ b/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"))