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