{"action":"created","issue":{"url":"https://api.github.com/repos/mholt/caddy/issues/1276","repository_url":"https://api.github.com/repos/mholt/caddy","labels_url":"https://api.github.com/repos/mholt/caddy/issues/1276/labels{/name}","comments_url":"https://api.github.com/repos/mholt/caddy/issues/1276/comments","events_url":"https://api.github.com/repos/mholt/caddy/issues/1276/events","html_url":"https://github.com/mholt/caddy/issues/1276","id":191860241,"number":1276,"title":"Numeric markdown metadata can't be used in template","user":{"login":"cork","id":404380,"avatar_url":"https://avatars.githubusercontent.com/u/404380?v=3","gravatar_id":"","url":"https://api.github.com/users/cork","html_url":"https://github.com/cork","followers_url":"https://api.github.com/users/cork/followers","following_url":"https://api.github.com/users/cork/following{/other_user}","gists_url":"https://api.github.com/users/cork/gists{/gist_id}","starred_url":"https://api.github.com/users/cork/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cork/subscriptions","organizations_url":"https://api.github.com/users/cork/orgs","repos_url":"https://api.github.com/users/cork/repos","events_url":"https://api.github.com/users/cork/events{/privacy}","received_events_url":"https://api.github.com/users/cork/received_events","type":"User","site_admin":false},"labels":[{"id":165906144,"url":"https://api.github.com/repos/mholt/caddy/labels/help%20wanted","name":"help wanted","color":"159818","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2016-11-27T13:01:21Z","updated_at":"2016-11-30T17:04:39Z","closed_at":null,"body":"Numeric values in markdown metadata becomes `\"<no value>\"` in template.\r\n\r\ntemplate:\r\n```\r\n<!DOCTYPE html>\r\n<html>\r\n\t<head><title></title></head>\r\n\t<body>\r\n\t\t...\r\n\t\t<input name=\"test\" value=\"{{.Doc.number1}}\">\r\n\t\t<input name=\"test\" value=\"{{.Doc.number2}}\">\r\n\t\t...\r\n\t</body>\r\n</html>\r\n```\r\n\r\nmarkdown:\r\n```\r\n---\r\nnumber1: 5\r\nnumber2: \"5\"\r\n---\r\n```\r\n\r\nOutput:\r\n```\r\n<!DOCTYPE html>\r\n<html>\r\n\t<head><title></title></head>\r\n\t<body>\r\n\t\t...\r\n\t\t<input name=\"test\" value=\"<no value>\">\r\n\t\t<input name=\"test\" value=\"5\">\r\n\t\t...\r\n\t</body>\r\n</html>\r\n```\r\n\r\nExpected Output:\r\n```\r\n<!DOCTYPE html>\r\n<html>\r\n\t<head><title></title></head>\r\n\t<body>\r\n\t\t...\r\n\t\t<input name=\"test\" value=\"5\">\r\n\t\t<input name=\"test\" value=\"5\">\r\n\t\t...\r\n\t</body>\r\n</html>\r\n```\r\n\r\nTested with Caddy 0.9.3."},"comment":{"url":"https://api.github.com/repos/mholt/caddy/issues/comments/263931231","html_url":"https://github.com/mholt/caddy/issues/1276#issuecomment-263931231","issue_url":"https://api.github.com/repos/mholt/caddy/issues/1276","id":263931231,"user":{"login":"wendigo","id":66972,"avatar_url":"https://avatars.githubusercontent.com/u/66972?v=3","gravatar_id":"","url":"https://api.github.com/users/wendigo","html_url":"https://github.com/wendigo","followers_url":"https://api.github.com/users/wendigo/followers","following_url":"https://api.github.com/users/wendigo/following{/other_user}","gists_url":"https://api.github.com/users/wendigo/gists{/gist_id}","starred_url":"https://api.github.com/users/wendigo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wendigo/subscriptions","organizations_url":"https://api.github.com/users/wendigo/orgs","repos_url":"https://api.github.com/users/wendigo/repos","events_url":"https://api.github.com/users/wendigo/events{/privacy}","received_events_url":"https://api.github.com/users/wendigo/received_events","type":"User","site_admin":false},"created_at":"2016-11-30T17:04:39Z","updated_at":"2016-11-30T17:04:39Z","body":"@mholt: sure, check it now - now it's type agnostic :)"}}
{"actor":{"display_login":"wendigo"}}