{#each attachments as attachment} {#if isImage(attachment.extension)} {:else} {attachment.extension} {/if} {/each} {#if leftover}