Solved
custom JS that's being inserted via clientlibs - how do I pass a vale to the JS?
as above. As an example, I want to pass a property (example: ${properties.myVar}) to the javascript.
How can I do it? Thank you.
<sly data-sly-use.clientlib="/libs/granite/sightly/templates/clientlib.html"
data-sly-call="${clientlib.js @ categories='acme.my-custom-clientlibs-here'}"/>
In my javascript, I do something like this
alert("myVar: " + myVar);