SLING-9619 - The JavaScript Use Provider does not allow loading scripts relative to search paths any more

* check first if the dependency can be obtained as a resource relative to the
search paths;
* if the dependency was not found, check the resource type hierarchy which drives the rendering
* if the dependency was not found, check the script as a relative path to the current script
1 file changed
tree: 2ca74e2d5a2cb606e9264925bb6478edfa4fe341
  1. src/
  2. .gitignore
  3. bnd.bnd
  4. CODE_OF_CONDUCT.md
  5. CONTRIBUTING.md
  6. Jenkinsfile
  7. LICENSE
  8. pom.xml
  9. README.md
README.md

Build Status Maven Central JavaDocs License scripting

Apache Sling Scripting HTL JavaScript Use Provider

This module is part of the Apache Sling project.

This bundle allows HTL‘s Use API to access JS scripts. It also wraps Sling’s JS engine in a simulated event loop.

The bundle also contains a bindings values provider that adds an API layer accessible from HTL & JS. The implementation of that API can be found in src/main/resources/SLING-INF.