htmlx-org / HTMLx

One Template to rule them all
588 stars 9 forks source link

Why the # on conditionals and loops? #12

Closed PierBover closed 4 years ago

PierBover commented 6 years ago

For example:

{#if answer === 42}
  <p>what was the question?</p>
{/if}

Isn't this better?

{if answer === 42}
  <p>what was the question?</p>
{/if}

After all if is a restricted JS term.

mathiasrw commented 4 years ago

@PierBover BEcause it makes the parsing of the document unambiguous.