package common

import (
	"text/template"
	"time"

	"github.com/linlexing/dbx/render"
)

func init() {
	//增加紧凑部门代码渲染函数
	render.AddFunc(template.FuncMap{
		"now": time.Now,
		"date": func() string {
			return time.Now().Format("2006-01-02")
		},
	})
}
