You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Edit: More confused now than I was :) Can you double check the HamlPy and HTML to make sure they're exactly as you posted?
I see the problem, but I'm confused as to why your HamlPy compiles at all (it doesn't for me using the current development version). Are there backslashes around the quotes of your HamlPy "Some text to translate" that are not in your post?
Note that a workaround would be to use single quotes on the attribute value, i.e. "content": '...._("....")...'
I would suggest as a solution that escaped apostrophes in Django variables tags should have their backslashes removed after parsing. Does anybody foresee any negative side effects to this?
I have a function like this where I need to use inline quoting because it's an attribute:
This outputs:
The _() function is our translation function. It's argument needs to not be quoted! Is it possible to turn this off in some option.
The text was updated successfully, but these errors were encountered: