data-sly-repeat in data attribute
For 6.4.2 with HTL code:
<div data-sly-repeat.tag="${item.tags}">
<a>${tag.name}</a>
</div>
This will output
<div>
<a>tag-1</a><a>tag-2</a>
</div>
I am trying to achieve the following
1) How can I add a comma between the list?
<a>tag-1</a>,<a>tag-2</a>
2) How to have the repeat in a data attribute?
I am trying to output the following
<div data-filter="tag-1,tag-2">...</div>
With HTL
<div data-sly-repeat.tag="${item.tags}" data-sly-attribute.data-tag-filter="${tag.name}">...</div>
But it output
<div data-filter="tag-1">...</div>
<div data-filter="tag-2">...</div>
Thanks in advance.
