{{ define "main-content" }}
{{ if not .AuthedData.IsZero }}

Hello

This is index

Your session is {{ .AuthedData.SessionStringToken }}

Some string is {{ .AuthedData.SomeString }}

You've logged into a room {{ .AuthedData.Session.RoomId }}
{{ else }}

hoho, the session is missing. let's do the auth section

{{ template "loginSection" .LoginSectionData }}
{{ end }}

Here be rules

{{ end }}