How to pass some HTL variables/objects to a clientlib JS?
maybe easier to explain with an example:
<sly data-sly-use.mypageVars="${'com.myhost.core.impl.view.page.MyPageHelper'}"></sly>
<sly data-sly-use.clientLib="${'/libs/granite/sightly/templates/clientlib.html'}" data-sly-call="${clientLib.all @ categories='myhost.components.mypage'}"></sly>
I want to pass the data stored insite "mypageVars" to the javascript that's included in my clientlib "myhost.components.mypage"
Can you please tell me how it's done?
Thanks

