diff options
author | xengineering <me@xengineering.eu> | 2023-09-17 11:07:08 +0200 |
---|---|---|
committer | xengineering <me@xengineering.eu> | 2023-09-17 11:07:08 +0200 |
commit | ea54de7d32e6b576ccfb430e7e57811b7c4587fe (patch) | |
tree | 4182e9c401e571adb53f1d6cbe2b072c171c87b2 /templates.go | |
parent | d0f58c4812c8b5821e9ed15806fae44f7b1fb095 (diff) | |
download | ceres-ea54de7d32e6b576ccfb430e7e57811b7c4587fe.tar ceres-ea54de7d32e6b576ccfb430e7e57811b7c4587fe.tar.zst ceres-ea54de7d32e6b576ccfb430e7e57811b7c4587fe.zip |
Remove complete implementation
Restarting from scratch seems to be the fastest approach to switch to
sqlite and get rid of some other structural mistakes from the past.
Diffstat (limited to 'templates.go')
-rw-r--r-- | templates.go | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/templates.go b/templates.go deleted file mode 100644 index 2769926..0000000 --- a/templates.go +++ /dev/null @@ -1,24 +0,0 @@ -package main - -import ( - "log" - "net/http" - "text/template" -) - -func setupTemplates() *template.Template { - t, err := template.ParseGlob(config.Templates + "/*.html") - if err != nil { - panic(err) - } - return t -} - -func ServeTemplate(w http.ResponseWriter, name string, data interface{}) { - err := templates.ExecuteTemplate(w, name, data) - if err != nil { - log.Print(err) - http.Error(w, http.StatusText(404), 404) - return - } -} |