From c04cb8aabb47617e19b84254a3870197e9938874 Mon Sep 17 00:00:00 2001 From: Eliot Whalan Date: Fri, 24 Jun 2016 11:22:48 +1000 Subject: [PATCH] Add index.html to template cache --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index d2e567f..b0e248e 100644 --- a/main.go +++ b/main.go @@ -226,7 +226,7 @@ func getPaste(paste string, lang string) string { } -var templates = template.Must(template.ParseFiles("assets/paste.html")) +var templates = template.Must(template.ParseFiles("assets/paste.html", "assets/index.html")) var syntax, _ = ioutil.ReadFile("assets/syntax.html") func pasteHandler(w http.ResponseWriter, r *http.Request) {