-
-
Notifications
You must be signed in to change notification settings - Fork 215
New issue
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
Code compiles with escape=html, but not with escape=none. #132
Comments
Thanks for the very complete bug report! I'll do some digging. Inferring the types right is one of the hardest parts of Askama and interesting cases keep popping up... One of these days I'll see if I can come up with a more robust strategy. |
Can you try the branch from #133 and see if it solves your issue? Also, if you could write up a PR with a reduced version of the failing case, that would help a lot. |
Yes, this works. Do you mean a PR with a test case added like #134? |
I want to use a template for WebGL inside a html document, so I need to disable the html escaping for it to work. But when switching to
escape=none
, the borrow checker complains, because&{ self.name }
is used instead of&self.name
.The struct is defined as:
And I get the following errors:
Here is the generated code with html escaping and here without escaping.
Edit:
I forgot to mention the versions I use:
I also use the
edition = "2018"
option.The text was updated successfully, but these errors were encountered: