- Edited
Can I pass a variable to a snippet? Something like this:
<@ snippets/sign-up-block.php {myVariable: 'test'} @>
The usecase for this is I have an UI component with input element that has id attribute. I want to use the same ui component on the same page multiple times, so I need to make sure the id is different for every one of them. Passing a variable into it can solve my problem. Or maybe there's a better way to handle this?