Esempio n. 1
0
func (c *Home) PreFilter(in *goboots.In) *goboots.Out {
	// Abort execution if the parent controller didn't send in.Continue()
	if r := c.App.PreFilter(in); r == nil || !r.IsContinue() {
		return r
	}
	return in.Continue()
}
Esempio n. 2
0
func (c *App) PreFilter(in *goboots.In) *goboots.Out {
	return in.Continue()
}
Esempio n. 3
0
func (c *Home) Index(in *goboots.In) *goboots.Out {

	in.Content.Set("NumCPU", runtime.NumCPU())
	return in.OutputTpl("home/index.tpl")
}