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
I was using compile to see what gets generated to understand better how haml-js works.
But I might also use compileto generate JS code on the server
Currently I am using Haml(".content") then execute toString(). And then strip out the function name.
This seems to be a bit crazy to do.
Additionally I don't like that Haml function wraps the template code in catch block. I would rather prefer to see where exactly the error happened instead of silently rendering the default error template.
So how do you generate (or not)
selected
attribute with HAML similar to this:#something{selected: visible}
When I do:
Haml.compile('#something{selected: visible}')
I get the code generated:
This includes
undefined(visible)
which is invalid JavaScript.Am I doing something wrong here?
The text was updated successfully, but these errors were encountered: