{"action":"created","issue":{"url":"https://api.github.com/repos/gratipay/aspen-python/issues/415","labels_url":"https://api.github.com/repos/gratipay/aspen-python/issues/415/labels{/name}","comments_url":"https://api.github.com/repos/gratipay/aspen-python/issues/415/comments","events_url":"https://api.github.com/repos/gratipay/aspen-python/issues/415/events","html_url":"https://github.com/gratipay/aspen-python/pull/415","id":56917125,"number":415,"title":"Give more data to renderers","user":{"login":"Changaco","id":1581590,"avatar_url":"https://avatars.githubusercontent.com/u/1581590?v=3","gravatar_id":"","url":"https://api.github.com/users/Changaco","html_url":"https://github.com/Changaco","followers_url":"https://api.github.com/users/Changaco/followers","following_url":"https://api.github.com/users/Changaco/following{/other_user}","gists_url":"https://api.github.com/users/Changaco/gists{/gist_id}","starred_url":"https://api.github.com/users/Changaco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Changaco/subscriptions","organizations_url":"https://api.github.com/users/Changaco/orgs","repos_url":"https://api.github.com/users/Changaco/repos","events_url":"https://api.github.com/users/Changaco/events{/privacy}","received_events_url":"https://api.github.com/users/Changaco/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-02-07T16:45:21Z","updated_at":"2015-02-16T22:23:42Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/gratipay/aspen-python/pulls/415","html_url":"https://github.com/gratipay/aspen-python/pull/415","diff_url":"https://github.com/gratipay/aspen-python/pull/415.diff","patch_url":"https://github.com/gratipay/aspen-python/pull/415.patch"},"body":"Currently renderers only get the path of the simplate (`filepath`) and the content of the page (`raw`). It would be useful if they also got the content type (so they can determine the appropriate escaping rules for example, cf gratipay/aspen-python-plugins#9) and the position of the page in the simplate (so error messages can use the correct line numbers).\r\n\r\nThis PR makes the `offset` and `media_type` variables accessible to renderers."},"comment":{"url":"https://api.github.com/repos/gratipay/aspen-python/issues/comments/74581754","html_url":"https://github.com/gratipay/aspen-python/pull/415#issuecomment-74581754","issue_url":"https://api.github.com/repos/gratipay/aspen-python/issues/415","id":74581754,"user":{"login":"Changaco","id":1581590,"avatar_url":"https://avatars.githubusercontent.com/u/1581590?v=3","gravatar_id":"","url":"https://api.github.com/users/Changaco","html_url":"https://github.com/Changaco","followers_url":"https://api.github.com/users/Changaco/followers","following_url":"https://api.github.com/users/Changaco/following{/other_user}","gists_url":"https://api.github.com/users/Changaco/gists{/gist_id}","starred_url":"https://api.github.com/users/Changaco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Changaco/subscriptions","organizations_url":"https://api.github.com/users/Changaco/orgs","repos_url":"https://api.github.com/users/Changaco/repos","events_url":"https://api.github.com/users/Changaco/events{/privacy}","received_events_url":"https://api.github.com/users/Changaco/received_events","type":"User","site_admin":false},"created_at":"2015-02-16T22:23:42Z","updated_at":"2015-02-16T22:23:42Z","body":"@pjz It's not very straightforward I guess, but it's there: https://github.com/gratipay/aspen-python/pull/415/files#diff-240cb4155ea686609aa74f066e69d904R33"}}