twig.js icon indicating copy to clipboard operation
twig.js copied to clipboard

Provide PHP style output of booleans by specifying option.

Open antoineveldhoven opened this issue 7 months ago • 1 comments

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.

antoineveldhoven avatar May 28 '25 17:05 antoineveldhoven

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?

willrowe avatar May 29 '25 20:05 willrowe