Skip to content
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

HelperOptions can NOT tell if inverse exists #49

Open
tomatohf opened this issue Apr 8, 2015 · 2 comments
Open

HelperOptions can NOT tell if inverse exists #49

tomatohf opened this issue Apr 8, 2015 · 2 comments

Comments

@tomatohf
Copy link

tomatohf commented Apr 8, 2015

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 added a commit to QiaoBuTang/handlebars.scala that referenced this issue Apr 8, 2015
@timcharper
Copy link
Collaborator

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

@tomatohf
Copy link
Author

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants