add more unit testing case for template feature of ghttp.Server

This commit is contained in:
John
2020-03-21 13:45:33 +08:00
parent 6d47810782
commit c0a0913d4b
5 changed files with 31 additions and 3 deletions

View File

@ -8,7 +8,6 @@ import (
func main() {
s := ghttp.GetServer()
s.BindHandler("/", func(r *ghttp.Request) {
r.Response.Write("Hello World")
r.Response.WriteTpl("index.tpl", g.Map{
"title": "Test",
"name": "John",