From ade7a635c461b7d87f4b9ad57f2d8f3f96bd7a5e Mon Sep 17 00:00:00 2001 From: Zack Scholl Date: Mon, 8 Feb 2016 09:57:19 -0500 Subject: [PATCH] Works with `go install` now --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 50ebf1b..37c84ea 100644 --- a/main.go +++ b/main.go @@ -63,7 +63,7 @@ Options:`) //rebuildTexts(q) r := gin.Default() - r.LoadHTMLGlob("templates/*") + r.LoadHTMLGlob(path.Join(path.Dir(executableFile), "templates/*")) r.GET("/", newNote) r.GET("/:title", editNote) r.GET("/:title/*option", everythingElse)