package routes import ( "net/http" "shelves/backend/httpx" "shelves/backend/templates" ) type homeTemplate struct { templates.Page } func HomeGet(w http.ResponseWriter, req *http.Request) { ctx := httpx.GetCtx(req) tmpl := homeTemplate{ Page: templates.Page{SessionInfo: ctx.SessionInfo}, } html(w, templates.Tmpls.HTML("home.tmpl.html", tmpl)) }