We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@if (context.request.?.middleware(.auth).user) |user| <a class="btn btn-outline-danger" href="/logout">Logout {{user.email}}</a> @else <a class="btn btn-outline-light" href="/login">Login</a> @end
error: expected statement, found 'else' } else ^~~~
The text was updated successfully, but these errors were encountered:
I also tried switching to zig mode but that also did not work
zig
Sorry, something went wrong.
@if (context.request.?.middleware(.auth).user) |user| Logout {{user.email}} @else Login @EnD
confirmed it's a bug. but if you want to move forward now.. i think you can do a workaround hack like below
@if (context.request.?.middleware(.auth).user) |user| <a class="btn btn-outline-danger" href="/logout">Logout {{user.email}}</a> @else if (true) <a class="btn btn-outline-light" href="/login">Login</a> @end
No branches or pull requests
The text was updated successfully, but these errors were encountered: