Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
Scripting Sightly Engine 1.0.2
-
None
Description
Currently it is not possible to directly use an OSGI-service within data-sly-use in Sightly.
For simple services (like getting config-values), you need now to create a wrapper in Java/Javascript around this to make a call to the service.
Request is here is add support in data-sly-use using an OSGi-service.
<div data-sly-use.myService="com.mypackage.MyService">
${myService.simpleMethod}
</div>