I want to declare dynamic lists in the html tags of my riot component, but can't figure out what am I doing wrong. Found this syntax for the array in another question, but in a different context. So here's what I've been trying:
<c-artworkdisplay
extras= '[
{ "extra_name": "Featured on xy","extra_source": "xy.com" },
{ "extra_name": "Featured on zw","extra_source": "zw.com" }
]'>
</c-artworkdisplay>
The .tag itself should be fine as I could manage this to work when the array was declared in the mount script (I need the list to be unique for each tag, so that's not an option).