-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Svelte's templating language prefixes conditionals like {#if answer === 42} and {:else} which sometimes confuses folks: htmlx-org/HTMLx#12
Removing the # and : was proposed in Svelte at one point when discussing syntax changes (sveltejs/svelte#1318 (comment)), but the core team thought this would making parsing too difficult.
If feasible, it would probably be more familiar for most folks to simply use syntax like {if answer === 42} and {else} and {/if}. The same would go for loops: {each} and {/each}
Metadata
Metadata
Assignees
Labels
No labels