change the main.go place
This commit is contained in:
parent
ab6184e675
commit
92dc9975c7
@ -19,7 +19,7 @@ func About(w http.ResponseWriter, r *http.Request) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func renderTemplate(w http.ResponseWriter, tmpl string) {
|
func renderTemplate(w http.ResponseWriter, tmpl string) {
|
||||||
parsedTemplate, _ := template.ParseFiles("../..//templates/" + tmpl)
|
parsedTemplate, _ := template.ParseFiles("./templates/" + tmpl)
|
||||||
err := parsedTemplate.Execute(w, nil)
|
err := parsedTemplate.Execute(w, nil)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Println("error parsing template:", err)
|
fmt.Println("error parsing template:", err)
|
Loading…
Reference in New Issue
Block a user