package templates import ( "fiber-sessions/app/router/requests" ) templ LoginFormContent(content LoginFormValidationContent) {
if content.UsernameError != "" {
{ content.UsernameError }
}
if content.PasswordError != "" {
{ content.PasswordError }
}
if content.LoginError != "" {
{ content.LoginError }
}
} templ RenderLogin(request *requests.Request, pc PageContext) { @baseLayout(request, BaseLayoutContext{Title: pc.Title, ActivePage: "login"}) {

Login

@LoginFormContent(LoginFormValidationContent{Username: "pero", Password: "pero"})
} }