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))
This is especially noticeable when using something like
ember-truth-helpers
. Usingif
,and
, andor
helpers andtrue
values to demonstrate:(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:
Equivalent handlebars: