From 736e97de63601c877cc4fbaf101d932d8fd2ce59 Mon Sep 17 00:00:00 2001 From: john Date: Wed, 5 Sep 2018 09:48:19 +0800 Subject: [PATCH] up --- g/net/ghttp/ghttp_response_view.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/g/net/ghttp/ghttp_response_view.go b/g/net/ghttp/ghttp_response_view.go index a7c1eb014..46a396612 100644 --- a/g/net/ghttp/ghttp_response_view.go +++ b/g/net/ghttp/ghttp_response_view.go @@ -13,7 +13,7 @@ import ( ) // 展示模板,可以给定模板参数,及临时的自定义模板函数 -func (r *Response) Tpl(tpl string, params map[string]interface{}, funcmap...map[string]interface{}) error { +func (r *Response) WriteTpl(tpl string, params map[string]interface{}, funcmap...map[string]interface{}) error { fmap := make(gview.FuncMap) if len(funcmap) > 0 { fmap = funcmap[0] @@ -28,7 +28,7 @@ func (r *Response) Tpl(tpl string, params map[string]interface{}, funcmap...map[ } // 展示模板内容,可以给定模板参数,及临时的自定义模板函数 -func (r *Response) TplContent(content string, params map[string]interface{}, funcmap...map[string]interface{}) error { +func (r *Response) WriteTplContent(content string, params map[string]interface{}, funcmap...map[string]interface{}) error { fmap := make(gview.FuncMap) if len(funcmap) > 0 { fmap = funcmap[0]