aboutsummaryrefslogtreecommitdiff
path: root/modules/base
diff options
context:
space:
mode:
authorslene <vslene@gmail.com>2014-03-19 22:11:28 +0800
committerslene <vslene@gmail.com>2014-03-19 22:11:28 +0800
commit483cc3136920a70ae1707ec5337d574b288853c3 (patch)
tree8938b68f5278b9bb2e540a79178947823a55c7d7 /modules/base
parent3634d1ee326fd285935c0a5992575583ef6467d4 (diff)
Revert "fork render"
This reverts commit 56af7e99a819758c6bedc6d745a9f810f3fc050d.
Diffstat (limited to 'modules/base')
-rw-r--r--modules/base/template.go5
1 files changed, 0 insertions, 5 deletions
diff --git a/modules/base/template.go b/modules/base/template.go
index 23d3d277..db79340e 100644
--- a/modules/base/template.go
+++ b/modules/base/template.go
@@ -6,9 +6,7 @@ package base
import (
"container/list"
- "fmt"
"html/template"
- "time"
)
func Str2html(raw string) template.HTML {
@@ -42,9 +40,6 @@ var TemplateFuncs template.FuncMap = map[string]interface{}{
"AppDomain": func() string {
return Domain
},
- "LoadTimes": func(startTime time.Time) string {
- return fmt.Sprint(time.Since(startTime).Nanoseconds()/1e6) + "ms"
- },
"AvatarLink": AvatarLink,
"str2html": Str2html,
"TimeSince": TimeSince,