{"action":"closed","issue":{"url":"https://api.github.com/repos/jknack/handlebars.java/issues/353","labels_url":"https://api.github.com/repos/jknack/handlebars.java/issues/353/labels{/name}","comments_url":"https://api.github.com/repos/jknack/handlebars.java/issues/353/comments","events_url":"https://api.github.com/repos/jknack/handlebars.java/issues/353/events","html_url":"https://github.com/jknack/handlebars.java/issues/353","id":60400242,"number":353,"title":"Question: Implementing A Falsey String","user":{"login":"LTheobald","id":20010,"avatar_url":"https://avatars.githubusercontent.com/u/20010?v=3","gravatar_id":"","url":"https://api.github.com/users/LTheobald","html_url":"https://github.com/LTheobald","followers_url":"https://api.github.com/users/LTheobald/followers","following_url":"https://api.github.com/users/LTheobald/following{/other_user}","gists_url":"https://api.github.com/users/LTheobald/gists{/gist_id}","starred_url":"https://api.github.com/users/LTheobald/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LTheobald/subscriptions","organizations_url":"https://api.github.com/users/LTheobald/orgs","repos_url":"https://api.github.com/users/LTheobald/repos","events_url":"https://api.github.com/users/LTheobald/events{/privacy}","received_events_url":"https://api.github.com/users/LTheobald/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-03-09T19:56:54Z","updated_at":"2015-03-16T21:54:41Z","closed_at":"2015-03-16T21:54:41Z","body":"One of the problem I have with Handlebars.Java is that the strings `\"false\"` doesn't result in a falsey value.  So for example:\r\n\r\n    {{#if \"false\"}}\r\n      Hello!\r\n    {{/if}}\r\n\r\nWould always print something. Not a bad thing on it's own but add this to the fact that all Helper's want you to return a `CharSequence` then it's very hard to write a helper that you can use in a true/false situation. I'll have a dive through the code in a minute to see where this is setup & possibly implement a fix for a pull request.\r\n\r\nBut would this be an issue? Does it go against the Moustache spec (from what I've seen, it can be left up to the implementing language)? Are there any other problems that would make this a bad idea?"}}