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
I believe {{#if lookup my_vec 1}} is not what you want because it checks if lookup is a valid value and ignores my_vec and 1.
The error is thrown by strict check because your second element in my_vec is None. But I agree that in this case, strict mode should not throw error. Let me improve this behaviour in our upcoming 5.0 beta releases.
I was surprised by the following code throwing an error:
There are two ways to fix it. Either disable strict mode, or replace template string with the following (note removed parenthesis inside if).
I would expect the original code to work, based on handlebars docs.
The text was updated successfully, but these errors were encountered: