handlebars.scala icon indicating copy to clipboard operation
handlebars.scala copied to clipboard

HelperOptions can NOT tell if inverse exists

Open tomatohf opened this issue 10 years ago • 2 comments

The default IfHelper always call options.inverse(binding) when the given predict is NOT true, which would cause warning message when there is NO inverse node.

tomatohf avatar Apr 08 '15 04:04 tomatohf

I know this is 10 months later; Could you add some tests with an example for this?

timcharper avatar Feb 11 '16 06:02 timcharper

Actually, I just avoid the warning message when there is NO inverse node for IfHelper. And the output/result is exactly the same ... I'm not familiar with ScalaTest ... I'm not sure if it is able(or needed) to assert whether there is a warning message?

tomatohf avatar Feb 19 '16 07:02 tomatohf