示例#1
0
func init() {
	// WTF, i just want to set the RootDir as current dir.
	_, filename, _, _ := runtime.Caller(1)
	Config.RootDir = path.Dir(filename)

	goku.SetGlobalViewData("SiteName", "Todo - by {goku}")
}
示例#2
0
func init() {
	// WTF, i just want to set the RootDir as current dir.
	_, filename, _, _ := runtime.Caller(1)
	Config.RootDir = path.Dir(filename)

	// // template engine
	// te := mustache.NewMustacheTemplateEngine()
	// te.UseCache = !Config.Debug
	// Config.TemplateEnginer = te

	goku.SetGlobalViewData("SiteName", "Todo - by {goku}")

	loadFileConf()
}
示例#3
0
func init() {
	goku.SetGlobalViewData("UnixNow", unixNow)
	goku.SetGlobalViewData("ilg", funcMap_ilg)
	goku.SetGlobalViewData("htmlSafe", htmlSafe)
}