code refacturing, added render package comments

This commit is contained in:
2025-10-12 19:01:10 +00:00
parent 1a1ef9b55f
commit 3820bc399b
9 changed files with 55 additions and 73 deletions

View File

@ -21,5 +21,5 @@ func Server() {
// wellcoming main web page
func main_page(w http.ResponseWriter, req *http.Request) {
templ := map[string]string{"welcome_message": "hello world! this is api server with easy web menagment"}
fmt.Fprint(w, render.Template_with_page_vars("main", templ))
fmt.Fprint(w, render.Put_vars_to_template(render.Template_of_part("main"), templ))
}