Is there a way to access a convenience variable set in a template?
Hello!
I have a template where I set a convenience variable using data-sly-set:
<sly data-sly-template.myTemplate="${@ parameter}">
<sly data-sly-use.myModel="${'com.xxx.xxx.xxx.core.models.MyModel' @ parameter=parameter}" data-sly-set.myVariable="${myModel.method}"/>
</sly>
Is there a way I can access this variable in sightly code that calls this template?
The reason why I'm trying to figure this out is because we have multiple repositories, and we want to avoid having to include a Java dependency in every repo. We'd rather have a soft dependency, hence the template.