{"action":"created","issue":{"url":"https://api.github.com/repos/twigphp/Twig/issues/2171","repository_url":"https://api.github.com/repos/twigphp/Twig","labels_url":"https://api.github.com/repos/twigphp/Twig/issues/2171/labels{/name}","comments_url":"https://api.github.com/repos/twigphp/Twig/issues/2171/comments","events_url":"https://api.github.com/repos/twigphp/Twig/issues/2171/events","html_url":"https://github.com/twigphp/Twig/issues/2171","id":181464285,"number":2171,"title":"Appears that variables outside of macro blocks are not in scope inside the macro?","user":{"login":"wesruv","id":5607236,"avatar_url":"https://avatars.githubusercontent.com/u/5607236?v=3","gravatar_id":"","url":"https://api.github.com/users/wesruv","html_url":"https://github.com/wesruv","followers_url":"https://api.github.com/users/wesruv/followers","following_url":"https://api.github.com/users/wesruv/following{/other_user}","gists_url":"https://api.github.com/users/wesruv/gists{/gist_id}","starred_url":"https://api.github.com/users/wesruv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wesruv/subscriptions","organizations_url":"https://api.github.com/users/wesruv/orgs","repos_url":"https://api.github.com/users/wesruv/repos","events_url":"https://api.github.com/users/wesruv/events{/privacy}","received_events_url":"https://api.github.com/users/wesruv/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-10-06T16:30:16Z","updated_at":"2016-10-12T18:12:48Z","closed_at":null,"body":"Correct me if I'm wrong, but that seems to be the case. So:\r\n\r\n```\r\n{% set foo = 'wakka' %}\r\n\r\n{% macro bar(thing1) %}\r\n  {{ foo }}\r\n  {# ^ Doesn't print anything #}\r\n{% endmacro %}\r\n```\r\n\r\nWould be good to put a note about that on the `macro` page and the `set` page. If there's any other elements that define their own scope it'd be good to have a list on the set page."},"comment":{"url":"https://api.github.com/repos/twigphp/Twig/issues/comments/253292984","html_url":"https://github.com/twigphp/Twig/issues/2171#issuecomment-253292984","issue_url":"https://api.github.com/repos/twigphp/Twig/issues/2171","id":253292984,"user":{"login":"fabpot","id":47313,"avatar_url":"https://avatars.githubusercontent.com/u/47313?v=3","gravatar_id":"","url":"https://api.github.com/users/fabpot","html_url":"https://github.com/fabpot","followers_url":"https://api.github.com/users/fabpot/followers","following_url":"https://api.github.com/users/fabpot/following{/other_user}","gists_url":"https://api.github.com/users/fabpot/gists{/gist_id}","starred_url":"https://api.github.com/users/fabpot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fabpot/subscriptions","organizations_url":"https://api.github.com/users/fabpot/orgs","repos_url":"https://api.github.com/users/fabpot/repos","events_url":"https://api.github.com/users/fabpot/events{/privacy}","received_events_url":"https://api.github.com/users/fabpot/received_events","type":"User","site_admin":false},"created_at":"2016-10-12T18:12:47Z","updated_at":"2016-10-12T18:12:47Z","body":"@wesruv It would be very useful for us if you could tell us how to change the sentence to make it more understandable for you. It's always great to get feedback from someone who does not necessarily have a PHP background.\r\n\r\nI'm going to reopen this issue as having a section on scopes would be a great addition to the docs. Right now, scopes are defined in different places but having a dedicated paragraph makes sense.\r\n"}}
{"actor":{"display_login":"fabpot"}}