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