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
Regardless if we do make a more general pluggable falsey we need this feature distinctly separated out for ease of onboarding JMustache users. In JMustache the property is called: emptyStringIsFalse.
JMustache also has treat 0 as falsey as an option: zeroIsFalse.
JStachio assumes that only null strings can be falsey and not empty strings.
JMustache by default assumes similar but it is configurable.
I'm not sure what Mustache.java does but I assume it is similar by default and probably configurable.
For greenfield projects this feature is debatable. If one wants to test for empty strings one can make a custom Lambda.
However for existing projects or one migrating to javascript mustache templates this might be desirable.
The text was updated successfully, but these errors were encountered: