diff --git a/main.go b/main.go index 4c91f6b..4f3ea87 100644 --- a/main.go +++ b/main.go @@ -17,7 +17,7 @@ import ( "strings" ) -const VERSION = "v2" +const VERSION = "v3" var ( flagVerbose bool @@ -69,10 +69,7 @@ func replaceTilde(str string) string { // {{{ func pageIndex(w http.ResponseWriter, r *http.Request) { // {{{ var tmpl *template.Template var err error - if false { - tmpl, err = template.ParseFS(fs, "static/html/index.html") - } - tmpl, err = template.ParseFiles("static/html/index.html") + tmpl, err = template.ParseFS(fs, "static/html/index.html") if err != nil { w.Write([]byte(err.Error())) return