feat: logout route and button
This commit is contained in:
@@ -27,18 +27,21 @@ func indexPageRoute(
|
||||
type MainData struct {
|
||||
SessionStringToken string
|
||||
SomeString string
|
||||
SessionToken sessions.SessionData
|
||||
SessionToken sessions.SessionData
|
||||
}
|
||||
|
||||
data := pageData {
|
||||
data := pageData{
|
||||
Base: baseData{
|
||||
Title: "hello base template title",
|
||||
},
|
||||
Header: headerData{
|
||||
Title: session.RoomId,
|
||||
},
|
||||
Content: MainData{
|
||||
fmt.Sprintf("%+v", session),
|
||||
"hello!",
|
||||
session,
|
||||
},
|
||||
fmt.Sprintf("%+v", session),
|
||||
"hello!",
|
||||
session,
|
||||
},
|
||||
}
|
||||
tmpl := template.Must(template.ParseFS(templateFs, templFile, baseFile))
|
||||
err := tmpl.ExecuteTemplate(w, "full-page", data)
|
||||
|
||||
Reference in New Issue
Block a user