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

Emblem fails with multiple subexpressions #267

Closed
SaladFork opened this issue Jan 28, 2016 · 1 comment
Closed

Emblem fails with multiple subexpressions #267

SaladFork opened this issue Jan 28, 2016 · 1 comment

Comments

@SaladFork
Copy link

This is especially noticeable when using something like ember-truth-helpers. Using if, and, and or helpers and true values to demonstrate:

/ works
if true | foo

if (and true true) | foo

if (and true (or true true)) | foo
if (and (or true true) true) | foo

/ doesn't work (Expected _4BeginStatement or end of input)
if (and (or true true) (or true true)) | foo

(This is not an issue with and/or as the same issue occurs with any other helper)

The same issue occurs when passing nested subexpressions as values:

/ works
my-checkbox checked=(and (or true true) true)

/ doesn't work
my-checkbox checked=(and (or true true) (or true true))

Equivalent handlebars:

{{#if (and (or true true) (or true true))}}
  foo
{{/if}}

{{my-checkbox checked=(and (or true true) (or true true))}}
@thec0keman
Copy link
Collaborator

Fixed #267

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