-
-
Notifications
You must be signed in to change notification settings - Fork 240
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom isFalsy definition #255
Comments
Not available now. I think an additional |
We are planning on using a Perl liquid template implementation that shares templates with nodejs. It also has a slightly different truthy implementation which is closer to JS. So I was hoping to normalize them both. |
My typescript knowledge is not so good, I was trying to figure out a way to pass the liquid options into boolean.ts isFalsy() function. Would you be able to provide a pointer? I can update docs, tests and code and create pull request after. |
A simple (direct) approach would be:
That would be enough. Let me know if you get stuck. |
Hi! I would like isFalsy to match more closely with JavaScript's false definition. Would it be possible to add a feature to override the default isFalsy() definition as an option to the constructor?
The text was updated successfully, but these errors were encountered: