Pass Parameters from Sightly to Slice

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Pass Parameters from Sightly to Slice

phil@siteworx.com
Is is possible to pass parameters from Sightly to Slice when calling a class with data-sly-use?

<div data-sly-use.model="com.mycompany.myModel"></div>

I know it is possible with the Java Use-API as follows:

<div data-sly-use.model="${'com.mycompany.myModel' @ myParam='My param value.'}">

If this is possible with Slice, how can we grab the value inside the model?


   
R
Reply | Threaded
Open this post in threaded view
|

Re: Pass Parameters from Sightly to Slice

R
It's not possible unfortunately. But it sounds like a nice idea.