Is it possible to pass a variable to the data-sly-use statement using HTL Sightly Use API while also specifying a bundle? For example
<sly data-sly-use.help="${'com.company.service.Helper' @ myVar='hello!'}"></sly>
with the helper
package com.company.service;
import com.adobe.cq.sightly.WCMUsePojo;
public class Helper extends WCMUsePojo {
@Override
public void activate() throws Exception {
String myVar = getProperties().get("myVar", String.class);
// why is myVar is null?
}
}
If it makes a difference, this is in AEM 6.4.3.0