Пример #1
0
func (p *Login) Prepare() bool {
	p.Title = "用户登录"
	p.View.Folder = "user"
	common.SetupPage(&p.Page, "default")

	p.Layout.TopRenderList = nil

	return true
}
Пример #2
0
func (p *Default) Prepare() bool {
	p.Title = "MD Writer"
	p.View.Folder = "home"
	common.SetupPage(&p.Page, "default")

	// p.Layout.TopRenderList = nil
	// p.Layout.BottomRenderList = nil
	// p.AddHead("<base href=\"/\">")

	// p.Data = data
	return true
}
Пример #3
0
func (p *Error) Prepare() bool {
	p.Title = "Stock"
	p.View.Folder = "home"

	common.SetupPage(&p.Page, "default")

	p.Layout.TopRenderList = nil
	p.Layout.BottomRenderList = nil

	p.AddHead("<base href=\"/\">")

	return true
}