Esempio n. 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}")
}
Esempio n. 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()
}
Esempio n. 3
0
func init() {
	goku.SetGlobalViewData("UnixNow", unixNow)
	goku.SetGlobalViewData("ilg", funcMap_ilg)
	goku.SetGlobalViewData("htmlSafe", htmlSafe)
}