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

Inconsistent behavior with boolean values #853

Closed
uzikilon opened this issue Aug 23, 2014 · 1 comment
Closed

Inconsistent behavior with boolean values #853

uzikilon opened this issue Aug 23, 2014 · 1 comment

Comments

@uzikilon
Copy link

I am not sure if its a bug or a feature, but I would expect booleans to be converted to the string value of them (e.g. bool.toString() which will result in 'true' or 'false')
This is the current behavior with handlebars 1.3.0:

var tmpl = Handlebars.compile({{bool}});
tmpl({bool: true}); // 'true'
tmpl({bool: false}); // ''
@kpdecker
Copy link
Collaborator

Same issue as #827. Closing to track there.

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