{"action":"closed","issue":{"url":"https://api.github.com/repos/linkedin/dustjs/issues/634","labels_url":"https://api.github.com/repos/linkedin/dustjs/issues/634/labels{/name}","comments_url":"https://api.github.com/repos/linkedin/dustjs/issues/634/comments","events_url":"https://api.github.com/repos/linkedin/dustjs/issues/634/events","html_url":"https://github.com/linkedin/dustjs/issues/634","id":69088001,"number":634,"title":"Integer and boolean parameters","user":{"login":"gabrielf","id":137649,"avatar_url":"https://avatars.githubusercontent.com/u/137649?v=3","gravatar_id":"","url":"https://api.github.com/users/gabrielf","html_url":"https://github.com/gabrielf","followers_url":"https://api.github.com/users/gabrielf/followers","following_url":"https://api.github.com/users/gabrielf/following{/other_user}","gists_url":"https://api.github.com/users/gabrielf/gists{/gist_id}","starred_url":"https://api.github.com/users/gabrielf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gabrielf/subscriptions","organizations_url":"https://api.github.com/users/gabrielf/orgs","repos_url":"https://api.github.com/users/gabrielf/repos","events_url":"https://api.github.com/users/gabrielf/events{/privacy}","received_events_url":"https://api.github.com/users/gabrielf/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-17T07:40:51Z","updated_at":"2015-04-17T15:35:35Z","closed_at":"2015-04-17T15:35:35Z","body":"I think it would be useful if Dustjs supported boolean literals as parameters like this:\r\n\r\n```\r\n{@mySweetHelper funkyMode=true /}\r\n```\r\n\r\nCurrently this will instead search for the key \"true\" in the current context (which is expected considering the documentation). Integers however _are_ sent as numbers which is something I cannot find in the documentation.\r\n\r\nIs this by design or by accident? Regardless I think it should be documented.\r\n\r\nBelow is a full example showing that booleans does not work (expected but would be nice) but that integers does work (unexpected but perhaps useful).\r\n\r\nDustJS-Template:\r\n\r\n```\r\n{#booleanParam bool=true/}\r\n{#integerParam int=123/}\r\n```\r\n\r\nData:\r\n\r\n```javascript\r\n{\r\n  \"booleanParam\": function(chunk, context, bodies, params) {\r\n     return chunk.write(\"bool param is: \" + (params.bool ? \"true\" : \"false\") + \" type: \" + typeof params.bool + \"\\n\");\r\n  },\r\n  \"integerParam\": function(chunk, context, bodies, params) {\r\n     return chunk.write(\"int param is: \" + params.int + \" type: \" + typeof params.int);\r\n  }\r\n}\r\n```\r\n\r\nResult:\r\n\r\n```\r\nbool param is: false type: undefined\r\nint param is: 123 type: number\r\n```\r\n"}}