how to pass handlebar attributes in data-sly-use
Hi All,
We are calling WCMUsePojo (AbcDetails) and want to pass an attribute (part no) which are coming via handlebar, and somehow the attributes are not getting resolved. However, in data-sly-call we can pass the handlebar attributes.
<sly
data-sly-use.abcDetails="${'com.abc.demo.AbcDetails' @partNo = '{{../partNo}}'}">
<sly
data-sly-use.testTemplate="components/content/test-template.html">
<sly
<!-- this works - IF we can get abcDetails by passing hardcoded partNo -->
data-sly-call="${testTemplate.demoOrder @abcInfo=abcDetails, definition='{{../../demo}}', parentIndex='{{../../test}}', info='{{../test1}}'}">
</sly>
</sly>
</sly>
Need urgent help, can we not pass handlebar attributes to data-sly-use