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() }
func (c *App) PreFilter(in *goboots.In) *goboots.Out { return in.Continue() }
func (c *Home) Index(in *goboots.In) *goboots.Out { in.Content.Set("NumCPU", runtime.NumCPU()) return in.OutputTpl("home/index.tpl") }