From 7b1e505e95098829190281e2124f6266a1ff8ecb Mon Sep 17 00:00:00 2001 From: kekskurse Date: Sat, 15 Jan 2022 01:04:36 +0100 Subject: [PATCH] Template --- .gitignore | 3 ++- main.go | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 46bf41d..0bc5704 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ .env .idea/ -tmp/ \ No newline at end of file +tmp/ +kuvia \ No newline at end of file diff --git a/main.go b/main.go index eea9f8a..848fb9b 100644 --- a/main.go +++ b/main.go @@ -123,7 +123,7 @@ func main() { FileSystem: http.FS(public), }, )) - templateFS, err := template.EmbedFS(templates, "templates/", []string{".tmpl"}) + templateFS, err := template.EmbedFS(templates, "templates", []string{".tmpl"}) if err != nil { log.Fatal().Err(err).Msg("Cant creat EmbedFS for templates") }