payload: {"action":"closed","issue":{"url":"https://api.github.com/repos/twigphp/Twig/issues/1217","repository_url":"https://api.github.com/repos/twigphp/Twig","labels_url":"https://api.github.com/repos/twigphp/Twig/issues/1217/labels{/name}","comments_url":"https://api.github.com/repos/twigphp/Twig/issues/1217/comments","events_url":"https://api.github.com/repos/twigphp/Twig/issues/1217/events","html_url":"https://github.com/twigphp/Twig/issues/1217","id":20439809,"node_id":"MDU6SXNzdWUyMDQzOTgwOQ==","number":1217,"title":"Magical and incorrect macro call","user":{"login":"hason","id":288535,"node_id":"MDQ6VXNlcjI4ODUzNQ==","avatar_url":"https://avatars2.githubusercontent.com/u/288535?v=4","gravatar_id":"","url":"https://api.github.com/users/hason","html_url":"https://github.com/hason","followers_url":"https://api.github.com/users/hason/followers","following_url":"https://api.github.com/users/hason/following{/other_user}","gists_url":"https://api.github.com/users/hason/gists{/gist_id}","starred_url":"https://api.github.com/users/hason/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hason/subscriptions","organizations_url":"https://api.github.com/users/hason/orgs","repos_url":"https://api.github.com/users/hason/repos","events_url":"https://api.github.com/users/hason/events{/privacy}","received_events_url":"https://api.github.com/users/hason/received_events","type":"User","site_admin":false},"labels":[{"id":480714533,"node_id":"MDU6TGFiZWw0ODA3MTQ1MzM=","url":"https://api.github.com/repos/twigphp/Twig/labels/Macros","name":"Macros","color":"d93f0b","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2013-10-03T06:57:43Z","updated_at":"2019-05-16T20:19:22Z","closed_at":"2019-05-16T20:19:22Z","author_association":"CONTRIBUTOR","body":"Let us have templates:\n\n``` jinja\n{# index.twig #}\n{% extends \"parent.twig\" %}\n\n{% block content %}\n{{ macros.hello(\"Jack\") }}\n{% endblock %}\n\n{# parent.twig #}\n{% macro hello(name) %}\n{% endmacro %}\n\n{% import _self as macros %}\n\n{% block content \"\" %}\n```\n\nThe `{{ macros.hello(\"Jack\") }}` line in the template `index.html` is compiled to:\n\n``` php\n$this->getAttribute($this->getContext($context, 'macros'), 'hello', ...)\n```\n\nProperly, we should find out what is the variable `macros` and call the macro `hello` normally.\n"}}
other: {"actor":{"display_login":"fabpot"}}