When I include specific Twig template component multiple times, how can I give it a unique ID (or class)?
Components are not inside
for loop, so I cannot use
loop.index. I also don't wont to pass unique variable myself when I include it. And using
random Twig function doesn't ensure that the result is unique.
Let's also assume that each component doesn't have unique Craft element assigned to it, like entry - in such case, I could just use this entry ID.