twig.js
twig.js copied to clipboard
Provide PHP style output of booleans by specifying option.
I'm not sure if this is the way to go, since this is a very old issue. Please share your thoughts @willrowe && @RobLoach about this fix.
Aiming to fix #88
Since this change breaks every boolean test and / or comparison, I've introduced an option in order to enable PHP style boolean outputs.
I don't see any issue with this since the option is disabled by default. It gives an upgrade path for the next major version to change the default. May be a good idea to include a deprecation notice when the option is not enabled and a boolean is encountered?