Hi, Isn't the "does not work" related to SLING-1422 [1] ?
Regards Felix [1] https://issues.apache.org/jira/browse/SLING-1422 On 03.03.2010 15:36, Bertrand Delacretaz (JIRA) wrote: > Simplify Standalone script execution > ------------------------------------ > > Key: SLING-1423 > URL: https://issues.apache.org/jira/browse/SLING-1423 > Project: Sling > Issue Type: Improvement > Components: Scripting > Reporter: Bertrand Delacretaz > Priority: Minor > > > Executing a Sling script in standalone mode (i.e. without request/response) > should be as simple as: > > Resource = ... > SlingScript script = resource.adaptTo(SlingScript.class); > SlingBindings bindings = new SlingBindings(); > ...add values to bindings > script.eval(bindings); > > Currently this does not work, and we should add tests for that once it works. > >
