Skip to content
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

Haml conditionals in line #154

Open
dan-klasson opened this issue Dec 24, 2015 · 2 comments
Open

Haml conditionals in line #154

dan-klasson opened this issue Dec 24, 2015 · 2 comments

Comments

@dan-klasson
Copy link

This does not work with deface:

.hello{:style => (true ? 'color: green' : 'color: red;')}

The style element does not get displayed.

@jalada
Copy link

jalada commented Apr 15, 2016

This bug made me want to smash things :( mainly because the behaviour of the bug is really weird; you just silently lose a bunch of your other element attributes.

For others encountering this; your best bet is to pull out the logic into a helper method to escape Deface.

@tayateo
Copy link

tayateo commented May 2, 2017

I also have this bug. Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants