-
Notifications
You must be signed in to change notification settings - Fork 5
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
how can I write and
condition in g:if
tag?
#8
Comments
What version of Grails are you using? |
Thanks for replying Grails version 2.1.1 |
JHaml doesn't know to skip HTML escaping within a ${...} expression for attribute values. Thanks for bringing that to light, I'm working on fixing it. In the mean time, try putting the expression itself in parens with no quotes. Haml syntax recognizes that as an expression.
Should resolve to:
Let me know if that helps. |
Hello, I have tested around but nothing good :( Thanks |
I've now fixed this in JHaml 0.1.5. Attribute values which look like they have ${}... expression language in them are not escaped. Haml4Grails 0.4 includes it - you can try out the zipped plugin here: I'll publish it to the official Grails plugin repo once it's ready. It's built against Grails 1.3.9, so let me know if there is trouble importing into 2.1.1 - I had some issues getting the dependencies to come through when installing into 2.2.0. Update: Another idea for a workaround: |
Thanks a lot. |
Hello,
I'm using your haml4grails plugin.
It saves me ;)
Unfortunately, i have something like this:
it will be converted into
and it make compiler crashes because of
&
So, my question is: how can I avoid this error?
I need
and
condition working.Thanks in advance
The text was updated successfully, but these errors were encountered: