diff options
author | Unknown <joe2010xtmf@163.com> | 2014-03-19 10:46:48 -0400 |
---|---|---|
committer | Unknown <joe2010xtmf@163.com> | 2014-03-19 10:46:48 -0400 |
commit | ddbd2ce152a7443076e3000fc1723f4589611ca8 (patch) | |
tree | 2fa8bca12ce6f44b928fa81d7a88acc4bf7655fb /modules/base/tool.go | |
parent | 3634d1ee326fd285935c0a5992575583ef6467d4 (diff) |
Add register mail tpl
Diffstat (limited to 'modules/base/tool.go')
-rw-r--r-- | modules/base/tool.go | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/modules/base/tool.go b/modules/base/tool.go index fc3b4c45..d0b6bfbf 100644 --- a/modules/base/tool.go +++ b/modules/base/tool.go @@ -67,25 +67,6 @@ func CreateTimeLimitCode(data string, minutes int, startInf interface{}) string return code } -// TODO: -func RenderTemplate(TplNames string, Data map[interface{}]interface{}) string { - // if beego.RunMode == "dev" { - // beego.BuildTemplate(beego.ViewsPath) - // } - - // ibytes := bytes.NewBufferString("") - // if _, ok := beego.BeeTemplates[TplNames]; !ok { - // panic("can't find templatefile in the path:" + TplNames) - // } - // err := beego.BeeTemplates[TplNames].ExecuteTemplate(ibytes, TplNames, Data) - // if err != nil { - // beego.Trace("template Execute err:", err) - // } - // icontent, _ := ioutil.ReadAll(ibytes) - // return string(icontent) - return "not implement yet" -} - // AvatarLink returns avatar link by given e-mail. func AvatarLink(email string) string { return "http://1.gravatar.com/avatar/" + EncodeMd5(email) |