package templates import ( "html/template" "shelves/auth" ) type PageBase struct { Title string Head template.HTML Body template.HTML BodyBefore template.HTML BodyAfter template.HTML } func (pb PageBase) HTML() template.HTML { return Tmpls.HTML("page_base.tmpl.html", pb) } type Page struct { SessionInfo auth.SessionInfo Title string Head template.HTML Body template.HTML BodyBefore template.HTML BodyAfter template.HTML } func (p Page) HTML() template.HTML { return Tmpls.HTML("page.tmpl.html", p) }