{"action":"created","issue":{"url":"https://api.github.com/repos/twigphp/Twig/issues/2381","repository_url":"https://api.github.com/repos/twigphp/Twig","labels_url":"https://api.github.com/repos/twigphp/Twig/issues/2381/labels{/name}","comments_url":"https://api.github.com/repos/twigphp/Twig/issues/2381/comments","events_url":"https://api.github.com/repos/twigphp/Twig/issues/2381/events","html_url":"https://github.com/twigphp/Twig/issues/2381","id":203873605,"number":2381,"title":"Parsing of unused parent blocks","user":{"login":"wesleylancel","id":2806404,"avatar_url":"https://avatars.githubusercontent.com/u/2806404?v=3","gravatar_id":"","url":"https://api.github.com/users/wesleylancel","html_url":"https://github.com/wesleylancel","followers_url":"https://api.github.com/users/wesleylancel/followers","following_url":"https://api.github.com/users/wesleylancel/following{/other_user}","gists_url":"https://api.github.com/users/wesleylancel/gists{/gist_id}","starred_url":"https://api.github.com/users/wesleylancel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wesleylancel/subscriptions","organizations_url":"https://api.github.com/users/wesleylancel/orgs","repos_url":"https://api.github.com/users/wesleylancel/repos","events_url":"https://api.github.com/users/wesleylancel/events{/privacy}","received_events_url":"https://api.github.com/users/wesleylancel/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-01-29T14:38:37Z","updated_at":"2017-01-30T17:02:41Z","closed_at":null,"body":"When a template A extends template B, contents of the blocks in template B are still parsed even when they're overruled in template A and not referenced using something like `parent()`.\r\n\r\nThis can be an issue when the parser fails to parse the contents of an unused block in template B, while it's able to parse the same block in template A just fine."},"comment":{"url":"https://api.github.com/repos/twigphp/Twig/issues/comments/276120850","html_url":"https://github.com/twigphp/Twig/issues/2381#issuecomment-276120850","issue_url":"https://api.github.com/repos/twigphp/Twig/issues/2381","id":276120850,"user":{"login":"stof","id":439401,"avatar_url":"https://avatars.githubusercontent.com/u/439401?v=3","gravatar_id":"","url":"https://api.github.com/users/stof","html_url":"https://github.com/stof","followers_url":"https://api.github.com/users/stof/followers","following_url":"https://api.github.com/users/stof/following{/other_user}","gists_url":"https://api.github.com/users/stof/gists{/gist_id}","starred_url":"https://api.github.com/users/stof/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stof/subscriptions","organizations_url":"https://api.github.com/users/stof/orgs","repos_url":"https://api.github.com/users/stof/repos","events_url":"https://api.github.com/users/stof/events{/privacy}","received_events_url":"https://api.github.com/users/stof/received_events","type":"User","site_admin":false},"created_at":"2017-01-30T17:02:41Z","updated_at":"2017-01-30T17:02:41Z","body":"No, because Twig does not know how to parse unknown tags. So it cannot compile the template properly. It cannot even know where the unknown part ends, as the TokenParser is fully responsible for parsing the related content, allowing any structure (btw, the usage of ``end*`` for the closing tag of a tag using a body is just a convention. you could name it however you want so Twig cannot do guessing based on it. And tags don't always need a body and closing tag. they can end themselves)"}}
{"actor":{"display_login":"stof"}}