blog/core/internal/render/functions.go

15 lines
234 B
Go
Raw Normal View History

2018-02-10 21:16:20 +00:00
package render
import (
"html/template"
"strings"
"time"
)
// Funcs is a global funcmap that the blog can hook its internal
// methods onto.
var Funcs = template.FuncMap{
"StringsJoin": strings.Join,
"Now": time.Now,
}