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

if and else are accepted instead of @if and @else #91

Closed
P-E-Meunier opened this issue Jul 2, 2017 · 0 comments
Closed

if and else are accepted instead of @if and @else #91

P-E-Meunier opened this issue Jul 2, 2017 · 0 comments

Comments

@P-E-Meunier
Copy link

I just spent some time debugging one of the first maud codes I translated from mustache templates.
I had:

if is_editable {
   form …
}

Maud should have told me to use @if instead of if, with either an error or at least a warning.

ivanbakel added a commit to ivanbakel/maud that referenced this issue Oct 11, 2018
Fixes lambda-fairy#91.
To avoid erroneously preventing elements which are actually meant to be
called `if` from being used, this is only a warning, with a suggestion
of the template syntax.
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