I want to test a Reagent/Re-Frame view by asserting properties of the Hiccup markup it returns. Therefore I need functions that traverse the tree, filter it, or check that certain elements with certain attributes are present.
I can not be the first to have this problem, yet Google wasn't very helpful. Is there a library that does that? If not, how would you, e.g., write a function that traverses the markup and returns a seq of all elements with a certain tag?
You can analyze and modify any tree-like data structure using the Tupelo Forest library. Please view the Lightning Talk video and peruse the many live examples.
If you add more detail to your question I can update the answer with something specific.
You can also see this answer.