3 ms·
How would you do it?
by doctor_eval 3y ago
How would you do it?
- rmrfchik 3y agoI don't know should I stick to mustaches (it can be dictated by other reasons), but if I should: {#if expr} {#elseif expr} {#endif}
- doctor_eval 3y agoThese sigils seem to exist to make it easier to balance the expressions. I personally find {#if} … {/if} much more intuitive. {:else} is an unfortunate compromise necessitated by the fact that elseif is ugly in most imperative languages.
- willmartian 3y agoI much prefer keeping everything XML-ish: https://www.solidjs.com/docs/latest/api#switchmatch https://www.solidjs.com/docs/latest/api#switchmatch