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

Treat empty strings as falsey values #210

Closed
wants to merge 1 commit into from

Conversation

boblail
Copy link

@boblail boblail commented Jul 30, 2015

Mustache was treating empty strings both as truthy and falsey values.

This change resolves the inconsistency, but also brings Mustache's behavior more in line with Mustache.js's.

This resolves issue #206

Mustache was treating empty strings both as truthy and falsey values.

This change resolves the inconsistency, but also brings Mustache's behavior more in line with Mustache.js's.
@bobthecow
Copy link
Member

👎 Empty strings are truthy in ruby, so they should be truthy in ruby mustache.

(The truthiness duality issue should be fixed, but it should be changed so that empty strings are consistently truthy, not consistently falsey).

@homu
Copy link
Collaborator

homu commented May 12, 2016

☔ The latest upstream changes (presumably #220) made this pull request unmergeable. Please resolve the merge conflicts.

@locks
Copy link
Member

locks commented May 12, 2016

Hi, I'm closing this PR because this would not be following the spec, like mentioned by @bobthecow.

@locks locks closed this May 12, 2016
@locks
Copy link
Member

locks commented May 12, 2016

@boblail I would welcome a new PR with the change mentioned, thank you for your contribution!

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

Successfully merging this pull request may close these issues.

None yet

4 participants