Open Tortoaster opened 2 months ago
Normally it was fixed in https://github.com/djc/askama/pull/1029. Please try with the main
branch to confirm it was fixed.
I'm afraid the issue is still there, I tested it on main
(c1366e0
).
Ok! Gonna take a look in the next hours.
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.