{"action":"created","issue":{"url":"https://api.github.com/repos/sprity/sprity/issues/64","repository_url":"https://api.github.com/repos/sprity/sprity","labels_url":"https://api.github.com/repos/sprity/sprity/issues/64/labels{/name}","comments_url":"https://api.github.com/repos/sprity/sprity/issues/64/comments","events_url":"https://api.github.com/repos/sprity/sprity/issues/64/events","html_url":"https://github.com/sprity/sprity/issues/64","id":157135665,"number":64,"title":"Specifying only one set of dimensions does not pass through @2x to templates","user":{"login":"mikehdt","id":4432939,"avatar_url":"https://avatars.githubusercontent.com/u/4432939?v=3","gravatar_id":"","url":"https://api.github.com/users/mikehdt","html_url":"https://github.com/mikehdt","followers_url":"https://api.github.com/users/mikehdt/followers","following_url":"https://api.github.com/users/mikehdt/following{/other_user}","gists_url":"https://api.github.com/users/mikehdt/gists{/gist_id}","starred_url":"https://api.github.com/users/mikehdt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikehdt/subscriptions","organizations_url":"https://api.github.com/users/mikehdt/orgs","repos_url":"https://api.github.com/users/mikehdt/repos","events_url":"https://api.github.com/users/mikehdt/events{/privacy}","received_events_url":"https://api.github.com/users/mikehdt/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-05-27T05:59:14Z","updated_at":"2016-07-02T23:48:01Z","closed_at":null,"body":"If you have a dimension config like this:\r\n\r\n```js\r\ndimension: [{\r\n    ratio: 2,\r\n    dpi: 144\r\n}],\r\n```\r\n\r\nthese values are _not_ passed through to the template, and will not render out any DPI information. The {{dpi}} and {{ratio}} values render as blank in this case.\r\n\r\nHowever, if you supply at least one 'sacrificial' config dimension, like so:\r\n\r\n```js\r\ndimension: [{\r\n    ratio: 1,\r\n    dpi: 72\r\n}, {\r\n    ratio: 2,\r\n    dpi: 144\r\n}],\r\n```\r\n\r\nthen it will render out correct 2× code as you would expect, and the {{dpi}} and {{ratio}} values render as expected."},"comment":{"url":"https://api.github.com/repos/sprity/sprity/issues/comments/230127583","html_url":"https://github.com/sprity/sprity/issues/64#issuecomment-230127583","issue_url":"https://api.github.com/repos/sprity/sprity/issues/64","id":230127583,"user":{"login":"jaime-olivares","id":6194083,"avatar_url":"https://avatars.githubusercontent.com/u/6194083?v=3","gravatar_id":"","url":"https://api.github.com/users/jaime-olivares","html_url":"https://github.com/jaime-olivares","followers_url":"https://api.github.com/users/jaime-olivares/followers","following_url":"https://api.github.com/users/jaime-olivares/following{/other_user}","gists_url":"https://api.github.com/users/jaime-olivares/gists{/gist_id}","starred_url":"https://api.github.com/users/jaime-olivares/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaime-olivares/subscriptions","organizations_url":"https://api.github.com/users/jaime-olivares/orgs","repos_url":"https://api.github.com/users/jaime-olivares/repos","events_url":"https://api.github.com/users/jaime-olivares/events{/privacy}","received_events_url":"https://api.github.com/users/jaime-olivares/received_events","type":"User","site_admin":false},"created_at":"2016-07-02T23:48:01Z","updated_at":"2016-07-02T23:48:01Z","body":"This one seems to be related to #34 "}}
{"actor":{"display_login":"jaime-olivares"}}