code refacturing, added render package comments
This commit is contained in:
@ -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))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user