Class ScriptUseProvider
- java.lang.Object
-
- org.apache.sling.scripting.sightly.impl.engine.extension.use.ScriptUseProvider
-
- All Implemented Interfaces:
org.apache.sling.scripting.sightly.use.UseProvider
public class ScriptUseProvider extends Object implements org.apache.sling.scripting.sightly.use.UseProvider
Use provider that interprets the identifier as a script path, and runs the respective script using a script engine that matches the script extension.This provider returns a non-failure outcome only if the evaluated script actually returns something. For more details check the implementation of the
SlingScript.eval(SlingBindings)
method for the available script engines from your platform.
-
-
Constructor Summary
Constructors Constructor Description ScriptUseProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.sling.scripting.sightly.use.ProviderOutcome
provide(String scriptName, org.apache.sling.scripting.sightly.render.RenderContext renderContext, Bindings arguments)
-