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
thing can be anything, so the correct way would be:
"<div#{{thing => 'foo'}.map do |k, v|
if k == :class
"class='cool #{v}'"
else
"#{k}='#{v}'"
end
end}/>"
That's slower, and in order to stay fast I would have to add more code to figure out when I know that none of the keys can possibly include :class (and use the simple version).
Right now I think I'll do it the easy way:
"<div class='cool' #{thing}='foo'/>"
Basically: Don't use :class/:id together with CSS proxy. I'm going to fix this later, but it's not that important for 0.1.
I love these! Parkaby::Processor in my repo is currently able to catch these, so I just need some glue in Parkaby::Generator!
The text was updated successfully, but these errors were encountered: