{"action":"created","issue":{"url":"https://api.github.com/repos/kraih/mojo/issues/956","repository_url":"https://api.github.com/repos/kraih/mojo","labels_url":"https://api.github.com/repos/kraih/mojo/issues/956/labels{/name}","comments_url":"https://api.github.com/repos/kraih/mojo/issues/956/comments","events_url":"https://api.github.com/repos/kraih/mojo/issues/956/events","html_url":"https://github.com/kraih/mojo/pull/956","id":154236991,"number":956,"title":"Make Mojo::Template support Devel::Cover","user":{"login":"ksmadsen","id":1752256,"avatar_url":"https://avatars.githubusercontent.com/u/1752256?v=3","gravatar_id":"","url":"https://api.github.com/users/ksmadsen","html_url":"https://github.com/ksmadsen","followers_url":"https://api.github.com/users/ksmadsen/followers","following_url":"https://api.github.com/users/ksmadsen/following{/other_user}","gists_url":"https://api.github.com/users/ksmadsen/gists{/gist_id}","starred_url":"https://api.github.com/users/ksmadsen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ksmadsen/subscriptions","organizations_url":"https://api.github.com/users/ksmadsen/orgs","repos_url":"https://api.github.com/users/ksmadsen/repos","events_url":"https://api.github.com/users/ksmadsen/events{/privacy}","received_events_url":"https://api.github.com/users/ksmadsen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-05-11T12:57:23Z","updated_at":"2016-05-11T14:37:04Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/kraih/mojo/pulls/956","html_url":"https://github.com/kraih/mojo/pull/956","diff_url":"https://github.com/kraih/mojo/pull/956.diff","patch_url":"https://github.com/kraih/mojo/pull/956.patch"},"body":"Add support for Devel::Cover in Mojo::Template, by monkey patching the compiled\r\ntemplate into its own namespace. This way the previously-anonymous sub exists\r\nin the symbol table, and therefore Devel::Cover can see it.\r\n\r\nAs suggested by @haarg in pjcj/Devel--Cover#31\r\n\r\nA path attribute is also added, to provide the path to the template instead of\r\nusing the name, which doesn't identify the template file."},"comment":{"url":"https://api.github.com/repos/kraih/mojo/issues/comments/218479146","html_url":"https://github.com/kraih/mojo/pull/956#issuecomment-218479146","issue_url":"https://api.github.com/repos/kraih/mojo/issues/956","id":218479146,"user":{"login":"ksmadsen","id":1752256,"avatar_url":"https://avatars.githubusercontent.com/u/1752256?v=3","gravatar_id":"","url":"https://api.github.com/users/ksmadsen","html_url":"https://github.com/ksmadsen","followers_url":"https://api.github.com/users/ksmadsen/followers","following_url":"https://api.github.com/users/ksmadsen/following{/other_user}","gists_url":"https://api.github.com/users/ksmadsen/gists{/gist_id}","starred_url":"https://api.github.com/users/ksmadsen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ksmadsen/subscriptions","organizations_url":"https://api.github.com/users/ksmadsen/orgs","repos_url":"https://api.github.com/users/ksmadsen/repos","events_url":"https://api.github.com/users/ksmadsen/events{/privacy}","received_events_url":"https://api.github.com/users/ksmadsen/received_events","type":"User","site_admin":false},"created_at":"2016-05-11T14:37:04Z","updated_at":"2016-05-11T14:37:04Z","body":"Fair enough. However getting the line-number for the `DATA` templates seems to require substantial changes to `Mojo::Loader::_all`. I'll be happy to give it a shot, but I'm far from certain that I can match your coding style on what will basically need to be a rewrite of `_all`."}}