#with helper don't work with `0`, `false` value and lost context
should ember render 'false'/0 in these cases ? ( just to confirm )
Hey guys, not sure if this is the right approach, looking for guidance to make it better, at least it seems to solve this issue :)
cc @stefanpenner @wycats
Same problem with null, undefined. IMHO, {{with}} should not work as {{if}}
I believe that this is intentional behavior. We use the same semantics as {{if}} to determine if the template block should be renderd.
We decided to go with the same {{if}} behavior for falsyiness, and that landed in https://github.com/emberjs/ember.js/issues/11035 (with docs added in https://github.com/emberjs/ember.js/pull/11075).
Thank you for reporting and taking a crack at fixing this issue!
very strange decision...