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
Macros can return SafeString object with empty val. If you'll make truthiness check of this object it would be true, but empty string would be false.
Any suggestions on fixing this issue? I was thinking about adding special truthiness check function, but then we should check everything in code with this function.
BTW jinja works fine in this case. Markup('') is False
The text was updated successfully, but these errors were encountered:
This is somewhat related to #267. I think both would be fixed in a similar way, by introducing a "truthiness check" function and using it rather than simple JS truthiness check.
Macros can return
SafeString
object with emptyval
. If you'll make truthiness check of this object it would betrue
, but empty string would befalse
.Any suggestions on fixing this issue? I was thinking about adding special truthiness check function, but then we should check everything in code with this function.
BTW jinja works fine in this case.
Markup('')
isFalse
The text was updated successfully, but these errors were encountered: