Created
March 7, 2017 09:01
-
-
Save heervisscher/17c4678386c13c7d0c4e0de62f661da1 to your computer and use it in GitHub Desktop.
HTL example with condition markup
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div data-sly-list="${currentPage.listChildren}"> | |
<sly data-sly-test="${itemList.first}" data-sly-call="${firstDiv}"/> | |
${item.title} | |
<sly data-sly-test="${itemList.last}" data-sly-call="${lastDiv}"/> | |
</div> | |
<template data-sly-template.firstDiv> | |
<div> | |
</template> | |
<template data-sly-template.lastDiv> | |
</div> | |
</template> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment