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
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
In CSS, you can do something like
to rewrite a matching node to set the color property.
Similarly, in Meander, I'd like to take a map like
and rewrite all nodes matching {:bar "b"} in the map if they have a parent matching {:foo "a"} to add the key-value pair {:color "red"}
I've been spending a bit of time trying to figure out how to make this work with
m/rewrite
andm/$
, but I'm not sure if that's the right approach.Beta Was this translation helpful? Give feedback.
All reactions