yes, In brief: check for the last child in the list and don't display it.
<sly data-sly-test="${!itemList.last}"><span class="link-separator"></span></sly>, here I am displaying the separator only if the list item is not the last one.
yes, In brief: check for the last child in the list and don't display it.
<sly data-sly-test="${!itemList.last}"><span class="link-separator"></span></sly>, here I am displaying the separator only if the list item is not the last one.