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

Sightly: allow calling data-sly-use with a resource path

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Duplicate
    • Scripting Sightly Engine 1.0.0
    • Scripting
    • None

    Description

      Following the discussion on dev@sling.apache.org I believe it would be nice if we can bind a resource (by path) to a variable using data-sly-use:

      data-sly-use.myResource="${ '/content/myResource' }"
      

      This will eliminate the need to create an use object for simple cases when we are reading properties from other resources.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: