I'm new to Enlive. I found that I can iterate with clone-for
, however, it works for single element. I want to generate a list of a pair of elements like the following:
<div>
<a href="url1">item 1</a><br>
<a href="url2">item 2</a><br>
...
</div>
I tried to select <a>
and use clone-for
, but end with following result:
<div>
<a href="url1">item 1</a><a href="url2">item 2</a>......<br>
</div>
What do I do to repeat <a>
with <br>
in each iteration?