diff options
author | navanchauhan <navanchauhan@gmail.com> | 2022-10-17 00:06:30 -0600 |
---|---|---|
committer | navanchauhan <navanchauhan@gmail.com> | 2022-10-17 00:06:30 -0600 |
commit | f6fcfa97cad2b8bd33f6003fdfbcf4ca5d04375f (patch) | |
tree | 8ef881c03498f77da22b439f168e23fd642dc98d | |
parent | 652115908a85013264faf9041f1e63d06d52e50e (diff) |
shifted templates
-rw-r--r-- | main.go | 4 | ||||
-rw-r--r-- | templates/results.gtpl (renamed from results.gtpl) | 0 | ||||
-rw-r--r-- | templates/search.gtpl (renamed from search.gtpl) | 0 |
3 files changed, 2 insertions, 2 deletions
@@ -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")) diff --git a/results.gtpl b/templates/results.gtpl index 151a7d3..151a7d3 100644 --- a/results.gtpl +++ b/templates/results.gtpl diff --git a/search.gtpl b/templates/search.gtpl index c14c02b..c14c02b 100644 --- a/search.gtpl +++ b/templates/search.gtpl |