コード例 #1
0
ファイル: config.go プロジェクト: seacoastboy/goku
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
ファイル: config.go プロジェクト: cloudcache/ohlala
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
ファイル: global_viewdata.go プロジェクト: yonglehou/ohlala
func init() {
	goku.SetGlobalViewData("UnixNow", unixNow)
	goku.SetGlobalViewData("ilg", funcMap_ilg)
	goku.SetGlobalViewData("htmlSafe", htmlSafe)
}