Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-1423

Simplify Standalone script execution

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • JCR Resource 2.0.8
    • Scripting
    • None

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              bdelacretaz Bertrand Delacretaz
              bdelacretaz Bertrand Delacretaz
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: