Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why the # on conditionals and loops? #12

Closed
PierBover opened this issue Nov 3, 2018 · 1 comment
Closed

Why the # on conditionals and loops? #12

PierBover opened this issue Nov 3, 2018 · 1 comment

Comments

@PierBover
Copy link

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants