Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-7681 HTL 1.4 support
  3. SLING-7682

[HTL] Add support for data-sly-list and data-sly-repeat iteration control

    XMLWordPrintableJSON

Details

    Description

      According to [0], both data-sly-list and data-sly-repeat should provide support for iteration control.

      <!--/* Iterate the collections starting from the element at index 5 (6th element), jumping every 5 elements, until index 100 */-->
      <ul data-sly-list="${collection @ begin = 5, step = 5, end = 100}">
          <li>${item}</li>
      </ul>
      <section data-sly-repeat="${collection @ begin = 5, step = 5, end = 100}">${item}</section>
      

      [0] - https://github.com/Adobe-Marketing-Cloud/htl-spec/issues/55

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: