Add index.html to template cache
This commit is contained in:
parent
a3d5f547d3
commit
a31b02e352
2
main.go
2
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")
|
var syntax, _ = ioutil.ReadFile("assets/syntax.html")
|
||||||
|
|
||||||
func pasteHandler(w http.ResponseWriter, r *http.Request) {
|
func pasteHandler(w http.ResponseWriter, r *http.Request) {
|
||||||
|
|
Loading…
Reference in New Issue