diff options
Diffstat (limited to '')
-rw-r--r-- | http_template.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/http_template.go b/http_template.go index d135c71..96338a3 100644 --- a/http_template.go +++ b/http_template.go @@ -2,6 +2,8 @@ package main import "net/http" +// render_template abstracts out the annoyances of reporting template rendering +// errors. func render_template(w http.ResponseWriter, template_name string, params map[string]any) { err := templates.ExecuteTemplate(w, template_name, params) if err != nil { |