{"action":"created","issue":{"url":"https://api.github.com/repos/rails/rails/issues/18962","labels_url":"https://api.github.com/repos/rails/rails/issues/18962/labels{/name}","comments_url":"https://api.github.com/repos/rails/rails/issues/18962/comments","events_url":"https://api.github.com/repos/rails/rails/issues/18962/events","html_url":"https://github.com/rails/rails/issues/18962","id":57864378,"number":18962,"title":"Make template locals available as a hash to the template itself","user":{"login":"dhh","id":2741,"avatar_url":"https://avatars.githubusercontent.com/u/2741?v=3","gravatar_id":"","url":"https://api.github.com/users/dhh","html_url":"https://github.com/dhh","followers_url":"https://api.github.com/users/dhh/followers","following_url":"https://api.github.com/users/dhh/following{/other_user}","gists_url":"https://api.github.com/users/dhh/gists{/gist_id}","starred_url":"https://api.github.com/users/dhh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dhh/subscriptions","organizations_url":"https://api.github.com/users/dhh/orgs","repos_url":"https://api.github.com/users/dhh/repos","events_url":"https://api.github.com/users/dhh/events{/privacy}","received_events_url":"https://api.github.com/users/dhh/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/rails/rails/labels/actionview","name":"actionview","color":"d7e102"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/rails/rails/milestones/34","labels_url":"https://api.github.com/repos/rails/rails/milestones/34/labels","id":665192,"number":34,"title":"5.0.0","description":null,"creator":{"login":"rafaelfranca","id":47848,"avatar_url":"https://avatars.githubusercontent.com/u/47848?v=3","gravatar_id":"","url":"https://api.github.com/users/rafaelfranca","html_url":"https://github.com/rafaelfranca","followers_url":"https://api.github.com/users/rafaelfranca/followers","following_url":"https://api.github.com/users/rafaelfranca/following{/other_user}","gists_url":"https://api.github.com/users/rafaelfranca/gists{/gist_id}","starred_url":"https://api.github.com/users/rafaelfranca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rafaelfranca/subscriptions","organizations_url":"https://api.github.com/users/rafaelfranca/orgs","repos_url":"https://api.github.com/users/rafaelfranca/repos","events_url":"https://api.github.com/users/rafaelfranca/events{/privacy}","received_events_url":"https://api.github.com/users/rafaelfranca/received_events","type":"User","site_admin":false},"open_issues":107,"closed_issues":67,"state":"open","created_at":"2014-05-21T00:58:22Z","updated_at":"2015-02-19T12:45:45Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2015-02-16T23:33:39Z","updated_at":"2015-02-20T11:28:07Z","closed_at":"2015-02-16T23:36:28Z","body":"This is a common piece of code:\r\n\r\n```\r\n# Template 1\r\n<%= render 'some/partial', magic: variable %>\r\n\r\n# Template 2\r\n<%= render 'some/partial' %>\r\n\r\n# some/partial\r\n<%= defined?(magic) ? magic : '' %>\r\n```\r\n\r\nThat `defined?` check is pretty gross. I'd much rather be able to do:\r\n\r\n```\r\n# some/partial\r\n<%= locals[:magic] %>\r\n```"},"comment":{"url":"https://api.github.com/repos/rails/rails/issues/comments/75224327","html_url":"https://github.com/rails/rails/issues/18962#issuecomment-75224327","issue_url":"https://api.github.com/repos/rails/rails/issues/18962","id":75224327,"user":{"login":"ondrek","id":1871393,"avatar_url":"https://avatars.githubusercontent.com/u/1871393?v=3","gravatar_id":"","url":"https://api.github.com/users/ondrek","html_url":"https://github.com/ondrek","followers_url":"https://api.github.com/users/ondrek/followers","following_url":"https://api.github.com/users/ondrek/following{/other_user}","gists_url":"https://api.github.com/users/ondrek/gists{/gist_id}","starred_url":"https://api.github.com/users/ondrek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ondrek/subscriptions","organizations_url":"https://api.github.com/users/ondrek/orgs","repos_url":"https://api.github.com/users/ondrek/repos","events_url":"https://api.github.com/users/ondrek/events{/privacy}","received_events_url":"https://api.github.com/users/ondrek/received_events","type":"User","site_admin":false},"created_at":"2015-02-20T11:28:07Z","updated_at":"2015-02-20T11:28:07Z","body":":facepunch: "}}