changed lib removed map_args, project_dir debug; changed render added get_template; small changes to api,manager due to function delition; big change to web split listen and serve for server log and routing through switch-case
This commit is contained in:
@ -3,7 +3,6 @@ package manager
|
||||
// package for the web menagment of the api paths
|
||||
|
||||
import (
|
||||
"api_manager/lib"
|
||||
"api_manager/web/api"
|
||||
"api_manager/web/render"
|
||||
"fmt"
|
||||
@ -28,11 +27,17 @@ func Render_apis(w http.ResponseWriter, req *http.Request) {
|
||||
|
||||
eval += render.Put_vars_to_template(
|
||||
render.Template_of_tag("li"),
|
||||
lib.Map_args("li_id", fmt.Sprint(i), "content", eval_group))
|
||||
map[string]string{
|
||||
"li_id":fmt.Sprint(i),
|
||||
"content":eval_group,
|
||||
})
|
||||
i++
|
||||
}
|
||||
fmt.Fprint(w,
|
||||
render.Put_vars_to_template(
|
||||
render.Template_of_part("json_out_as_list"),
|
||||
lib.Map_args("li_from_json_code", eval)))
|
||||
map[string]string{
|
||||
"li_from_json_code":eval,
|
||||
"template_title":"Api paths",
|
||||
}))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user