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

Select script engines in SlingScriptAdapterFactory via mapping

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Done
    • Scripting Core 2.0.28
    • Scripting Core 2.0.60
    • Scripting
    • None

    Description

      Running multiple script engines for same script (template) extension should be possible.

      Scripting Thymeleaf already provides that parameter, see org.apache.sling.scripting.thymeleaf.SlingTemplateModeHandler#getPatternSpec():org.thymeleaf.PatternSpec.

      Support for multiple script engines via mapping:

      {
        "sling:scripting": [
          "html=The HTL Templating Language:1.4",
          "js=ECMAScript:partial ECMAScript 2015 support"
        ]
      }
      

      Attachments

        Issue Links

          Activity

            People

              olli Oliver Lietz
              olli Oliver Lietz
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: