You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sorry if the title is confusing, but I'm seeing strange behavior when trying to compare a value using a custom helper in an "else" wrapped in an "each":
the correct value of style is passed to the "else is".
Is this expected behavior, and if so why, because I'm not following "../../"?
The text was updated successfully, but these errors were encountered:
jsm174
changed the title
Issue with "each" and custom helper with "else" -- #is ../ #else is ../../?
"each" and custom helper with "else" -- #is ../ #else is ../../?
Mar 29, 2016
@jsm174{{else is}} wont work. you might be able to do something like {{else if (is ../style "unordered")}} if you can figure out the logic allow your block helper to support also being a helper.
Sorry if the title is confusing, but I'm seeing strange behavior when trying to compare a value using a custom helper in an "else" wrapped in an "each":
Given the following:
JSON:
PARTIAL:
HELPER:
ISSUE:
The correct value of "style" is passed to the first "is" helper call, but not to the "else is" helper call.
If I change the partial to:
the correct value of style is passed to the "else is".
Is this expected behavior, and if so why, because I'm not following "../../"?
The text was updated successfully, but these errors were encountered: