handlebars.scala
handlebars.scala copied to clipboard
HelperOptions can NOT tell if inverse exists
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.
I know this is 10 months later; Could you add some tests with an example for this?
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?