{#if template !== undefined} dispatch('close')} > {template.title} {#if isEditing}