-
-
Notifications
You must be signed in to change notification settings - Fork 217
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
cannot compare strings in macros #502
Comments
Does this work outside a macro context? |
Yes it does. I didn't realise I could put rust code right inside the template so using enums instead of Strings works fine in macros:
(and yes, using |
This should be fixed, but not released yet. Could you try and verify using the repo? :) Like this: [dependencies]
askama = { git = "https://github.com/djc/askama", rev = "017b590" } |
@vallentin - Yes, it works fine against that revision :-) |
Great! If that was all, then I'll close this issue, as it's been fixed and will be included in the next release :) |
Hi - I have a macro which accepts a string argument but when I try and compare it I get "can't compare
&str
withstr
:I've read #376 which I think suggest that this should work.
Any help is gratefully appreciated! Thanks
The text was updated successfully, but these errors were encountered: