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
Given a template like this:
templates/base.html
{% block empty %} {% endblock %} {% if let Some(var) = var %} {{ var }} {% endif %}
The following code:
#[derive(Template)] #[template(path = "base.html", block = "empty")] struct Empty {}
Gives an error:
no field `var` on type `&Empty`
Due to the (empty) match statement generated by the derive macro, even though the field var is not necessary to render just the empty block.
var
empty
The text was updated successfully, but these errors were encountered:
Normally it was fixed in #1029. Please try with the main branch to confirm it was fixed.
main
Sorry, something went wrong.
I'm afraid the issue is still there, I tested it on main (c1366e0).
c1366e0
Ok! Gonna take a look in the next hours.
Successfully merging a pull request may close this issue.
Given a template like this:
templates/base.html
The following code:
Gives an error:
Due to the (empty) match statement generated by the derive macro, even though the field
var
is not necessary to render just theempty
block.The text was updated successfully, but these errors were encountered: