{#each displayItems as item, index}
{item}
{#if index < displayItems.length - 1} {#if divider}
{divider}
{:else} {/if}
{/if} {/each}