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

same as with string inside if fails #73

Open
galatea-nl opened this issue Dec 15, 2020 · 1 comment
Open

same as with string inside if fails #73

galatea-nl opened this issue Dec 15, 2020 · 1 comment

Comments

@galatea-nl
Copy link

When using same as with a string, it gets rewritten wrong:

{% if a is same as('b') %} {% endif %}

will become:

{% if a is same as(b) %} {% endif %}

(note the missing quote around b

When not inside an if statement it works as expected:

{{ a is same as('b') ? 'foo' : 'bar' }}
@oradwell
Copy link

I have the same issue. Used the following as a workaround:

{% if a == 'b' %}
{% endif %}

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