From c9bbc821be405b5217676e15ee655c68523a6298 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 Former-commit-id: e8f547f5d313841f5d7d4d948fc41647e133d6be [formerly eab73aa394d77bbdc282424608474169b7c59d32] [formerly 390884efb34984f8e12bab5539d22708bfac9bfe [formerly ade7a635c461b7d87f4b9ad57f2d8f3f96bd7a5e]] Former-commit-id: c6b97dfebd3e67ae41995ee2c7460fe42ba6fe9b [formerly 730e316ee79a607e336c32ffb9f35778bd257e64] Former-commit-id: 24302f964c296a31cff2d75d0d406ab3e199fe21 --- 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)