From f6fcfa97cad2b8bd33f6003fdfbcf4ca5d04375f Mon Sep 17 00:00:00 2001 From: navanchauhan Date: Mon, 17 Oct 2022 00:06:30 -0600 Subject: shifted templates --- main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'main.go') diff --git a/main.go b/main.go index 98aa5d5..535e575 100644 --- a/main.go +++ b/main.go @@ -53,7 +53,7 @@ func main() { index := client.Index("fda510k") http.HandleFunc("/classic/", func(w http.ResponseWriter, r *http.Request) { - t, _ := template.ParseFiles("search.gtpl") + t, _ := template.ParseFiles("templates/search.gtpl") t.Execute(w, nil) }) @@ -69,7 +69,7 @@ func main() { } //searchResTemplate := template.Must(template.ParseFiles("results.gtpl")) - searchResTemplate := template.Must(template.New("results.gtpl").Funcs(funcMap).ParseFiles("results.gtpl")) + searchResTemplate := template.Must(template.New("results.gtpl").Funcs(funcMap).ParseFiles("templates/results.gtpl")) // v2.0 UI searchResultsTemplate2 := template.Must(template.New("search_results.html").Funcs(funcMap).ParseFiles("templates/search_results.html")) -- cgit v1.2.3