diff options
author | Laria Carolin Chabowski <laria@laria.me> | 2021-10-15 17:21:35 +0200 |
---|---|---|
committer | Laria Carolin Chabowski <laria@laria.me> | 2021-10-15 17:21:35 +0200 |
commit | c1d54197d0bd3962b095dea1553a12ada4ad17dd (patch) | |
tree | 3545e00e94677a0b44d04e068d28c33a59810017 | |
parent | 8e496d82f6790f7cb8d5c9cb79ef537ccab600e6 (diff) | |
download | startpage-c1d54197d0bd3962b095dea1553a12ada4ad17dd.tar.gz startpage-c1d54197d0bd3962b095dea1553a12ada4ad17dd.tar.bz2 startpage-c1d54197d0bd3962b095dea1553a12ada4ad17dd.zip |
Move template into own directory
-rw-r--r-- | main.go | 4 | ||||
-rw-r--r-- | templates/template.html (renamed from template.html) | 0 |
2 files changed, 3 insertions, 1 deletions
@@ -22,7 +22,9 @@ func loadTemplate() { gopaths := strings.Split(os.Getenv("GOPATH"), ":") for _, p := range gopaths { var err error - tpl, err = template.ParseFiles(path.Join(p, "src", "github.com", "silvasur", "startpage", "template.html")) + tpl, err = template.ParseFiles( + path.Join(p, "src", "github.com", "silvasur", "startpage", "templates", "template.html"), + ) if err == nil { return } diff --git a/template.html b/templates/template.html index 4b20536..4b20536 100644 --- a/template.html +++ b/templates/template.html |