{#each segments as seg, i (i)} {#if seg.match}
{seg.text}
{:else} {seg.text} {/if} {/each}