Skip to content

Instantly share code, notes, and snippets.

@kevinweber
Last active February 1, 2024 18:09
Show Gist options
  • Select an option

  • Save kevinweber/4aa2317286de43b7ba6f0714262c481a to your computer and use it in GitHub Desktop.

Select an option

Save kevinweber/4aa2317286de43b7ba6f0714262c481a to your computer and use it in GitHub Desktop.

Revisions

  1. kevinweber revised this gist Dec 22, 2016. No changes.
  2. kevinweber revised this gist Jul 8, 2016. No changes.
  3. kevinweber created this gist Jul 1, 2016.
    7 changes: 7 additions & 0 deletions Sightly Pattern "Inline List"
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    <!--/* We can define a list within a Sightly template to avoid redundant code */-->

    <sly data-sly-test.versions="${['desktop', 'mobile']}"/>

    <sly data-sly-list.identifier="${versions}">
    <div class="element ${identifier}">Repeated content</div>
    </sly>
    2 changes: 2 additions & 0 deletions Sightly Pattern "Inline List" [Rendered]
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,2 @@
    <div class="element desktop">Repeated content</div>
    <div class="element mobile">Repeated content</div>