{"action":"closed","issue":{"url":"https://api.github.com/repos/ramnathv/slidify/issues/455","labels_url":"https://api.github.com/repos/ramnathv/slidify/issues/455/labels{/name}","comments_url":"https://api.github.com/repos/ramnathv/slidify/issues/455/comments","events_url":"https://api.github.com/repos/ramnathv/slidify/issues/455/events","html_url":"https://github.com/ramnathv/slidify/issues/455","id":105934922,"number":455,"title":"Mustache template problems with boolean parameters","user":{"login":"jonathan-g","id":5304060,"avatar_url":"https://avatars.githubusercontent.com/u/5304060?v=3","gravatar_id":"","url":"https://api.github.com/users/jonathan-g","html_url":"https://github.com/jonathan-g","followers_url":"https://api.github.com/users/jonathan-g/followers","following_url":"https://api.github.com/users/jonathan-g/following{/other_user}","gists_url":"https://api.github.com/users/jonathan-g/gists{/gist_id}","starred_url":"https://api.github.com/users/jonathan-g/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonathan-g/subscriptions","organizations_url":"https://api.github.com/users/jonathan-g/orgs","repos_url":"https://api.github.com/users/jonathan-g/repos","events_url":"https://api.github.com/users/jonathan-g/events{/privacy}","received_events_url":"https://api.github.com/users/jonathan-g/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-11T02:49:58Z","updated_at":"2015-09-15T01:51:02Z","closed_at":"2015-09-15T01:51:02Z","body":"Two mustache/whisker questions:\r\n\r\n1. If my yaml header in the .Rmd has something like\r\n\r\n        revealjs:\r\n            foo: true\r\n\r\n  and my template has something ```{{page.foo}}```, it is translated as `TRUE`, not `true`. This breaks javascript that is expecting `true` and doesn't know what `TRUE` is.\r\n\r\n2. Is there a way to get the conditional substitution in the mustache templates to tell the difference between setting a parameter to `false` and not setting it?\r\n\r\n  I would like to have a template that uses the setting in `page` if it's set in the page yaml header, but use a value that I read in from site.yml if the page's yaml header doesn't specify anything. I would do something like this:\r\n\r\n        {{#page.foo}}\r\n        {{page.foo}}\r\n        {{/page.foo}\r\n        {{^page.foo}}\r\n        {{#site.foo}}\r\n        {{site.foo}}\r\n        {{/site.foo}}\r\n        {{/page.foo}}\r\n\r\n  This works for strings and numbers, but if page.foo is a boolean value, then if site.yml has `foo: true` and index.Rmd has `foo: false` in the yaml header, I get `{{site.foo}}` (that is, `true`), not `false`"}}