Add index.html to template cache

This commit is contained in:
Eliot Whalan 2016-06-24 11:22:48 +10:00
parent 9d6e493717
commit c04cb8aabb
No known key found for this signature in database
GPG Key ID: C0A42175139840D6
1 changed files with 1 additions and 1 deletions

View File

@ -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) {