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

Properly handle actual Resources in Sightly data-sly-resource

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • Scripting Sightly Engine 1.0.18
    • Scripting
    • None

    Description

      At the moment Sightly data-sly-resource expects a resource path. The are moments where we already have a Resource that we need to include (such as including current resource or iterating and including children) and this leads to conversions such as Resource -> path -> Resource which are not desirable performance-wise.

      We should properly handle a resource passed as a parameter, such as:

      <sly data-sly-resource="${resource @ resourceType='some/type'}"/>

      Attachments

        Issue Links

          Activity

            People

              radu Radu Cotescu
              vladb Vlad Bailescu
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: