{"action":"opened","issue":{"url":"https://api.github.com/repos/nette/latte/issues/93","labels_url":"https://api.github.com/repos/nette/latte/issues/93/labels{/name}","comments_url":"https://api.github.com/repos/nette/latte/issues/93/comments","events_url":"https://api.github.com/repos/nette/latte/issues/93/events","html_url":"https://github.com/nette/latte/issues/93","id":119944551,"number":93,"title":"Macro ifContent does not work if combined with {if*} inside tag","user":{"login":"janlanger","id":415695,"avatar_url":"https://avatars.githubusercontent.com/u/415695?v=3","gravatar_id":"","url":"https://api.github.com/users/janlanger","html_url":"https://github.com/janlanger","followers_url":"https://api.github.com/users/janlanger/followers","following_url":"https://api.github.com/users/janlanger/following{/other_user}","gists_url":"https://api.github.com/users/janlanger/gists{/gist_id}","starred_url":"https://api.github.com/users/janlanger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/janlanger/subscriptions","organizations_url":"https://api.github.com/users/janlanger/orgs","repos_url":"https://api.github.com/users/janlanger/repos","events_url":"https://api.github.com/users/janlanger/events{/privacy}","received_events_url":"https://api.github.com/users/janlanger/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-02T13:49:40Z","updated_at":"2015-12-02T13:49:40Z","closed_at":null,"body":"Let's have this latte code\r\n\r\n```html\r\n<div class=\"bar\" {ifset $productIds}id=\"content\"{/ifset} n:ifcontent></div>\r\n\r\n<div class=\"baz\" n:ifcontent></div>\r\n```\r\n\r\nThe second tag will be removed by the macro, but the first one will not.\r\n\r\nCompiled template:\r\n\r\n```php\r\n<?php ob_start() ?>\r\n<div class=\"bar\" <?php if (isset($productIds)) { ob_start() ?>id=\"content\"<?php } ?>>\r\n  <?php $_l->ifcontent = ob_get_contents(); ob_end_flush() ?>\r\n</div>\r\n<?php rtrim($_l->ifcontent) === \"\" ? ob_end_clean() : ob_end_flush() ;ob_start() ?>\r\n\t\t<div class=\"baz\">\r\n\t\t  <?php ob_start() ;$_l->ifcontent = ob_get_contents(); ob_end_flush() ?>\r\n\t  </div>\r\n<?php rtrim($_l->ifcontent) === \"\" ? ob_end_clean() : ob_end_flush() ?>\r\n```\r\n\r\nAs you can see, the second ob_start() is generated inside the condition..."}}