{"action":"created","issue":{"url":"https://api.github.com/repos/pug-php/pug/issues/207","repository_url":"https://api.github.com/repos/pug-php/pug","labels_url":"https://api.github.com/repos/pug-php/pug/issues/207/labels{/name}","comments_url":"https://api.github.com/repos/pug-php/pug/issues/207/comments","events_url":"https://api.github.com/repos/pug-php/pug/issues/207/events","html_url":"https://github.com/pug-php/pug/issues/207","id":373944595,"node_id":"MDU6SXNzdWUzNzM5NDQ1OTU=","number":207,"title":"Ternary conditional operator should be defined inside brackets","user":{"login":"radiocity","id":2347073,"node_id":"MDQ6VXNlcjIzNDcwNzM=","avatar_url":"https://avatars0.githubusercontent.com/u/2347073?v=4","gravatar_id":"","url":"https://api.github.com/users/radiocity","html_url":"https://github.com/radiocity","followers_url":"https://api.github.com/users/radiocity/followers","following_url":"https://api.github.com/users/radiocity/following{/other_user}","gists_url":"https://api.github.com/users/radiocity/gists{/gist_id}","starred_url":"https://api.github.com/users/radiocity/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/radiocity/subscriptions","organizations_url":"https://api.github.com/users/radiocity/orgs","repos_url":"https://api.github.com/users/radiocity/repos","events_url":"https://api.github.com/users/radiocity/events{/privacy}","received_events_url":"https://api.github.com/users/radiocity/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"kylekatarnls","id":5966783,"node_id":"MDQ6VXNlcjU5NjY3ODM=","avatar_url":"https://avatars1.githubusercontent.com/u/5966783?v=4","gravatar_id":"","url":"https://api.github.com/users/kylekatarnls","html_url":"https://github.com/kylekatarnls","followers_url":"https://api.github.com/users/kylekatarnls/followers","following_url":"https://api.github.com/users/kylekatarnls/following{/other_user}","gists_url":"https://api.github.com/users/kylekatarnls/gists{/gist_id}","starred_url":"https://api.github.com/users/kylekatarnls/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kylekatarnls/subscriptions","organizations_url":"https://api.github.com/users/kylekatarnls/orgs","repos_url":"https://api.github.com/users/kylekatarnls/repos","events_url":"https://api.github.com/users/kylekatarnls/events{/privacy}","received_events_url":"https://api.github.com/users/kylekatarnls/received_events","type":"User","site_admin":false},"assignees":[{"login":"kylekatarnls","id":5966783,"node_id":"MDQ6VXNlcjU5NjY3ODM=","avatar_url":"https://avatars1.githubusercontent.com/u/5966783?v=4","gravatar_id":"","url":"https://api.github.com/users/kylekatarnls","html_url":"https://github.com/kylekatarnls","followers_url":"https://api.github.com/users/kylekatarnls/followers","following_url":"https://api.github.com/users/kylekatarnls/following{/other_user}","gists_url":"https://api.github.com/users/kylekatarnls/gists{/gist_id}","starred_url":"https://api.github.com/users/kylekatarnls/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kylekatarnls/subscriptions","organizations_url":"https://api.github.com/users/kylekatarnls/orgs","repos_url":"https://api.github.com/users/kylekatarnls/repos","events_url":"https://api.github.com/users/kylekatarnls/events{/privacy}","received_events_url":"https://api.github.com/users/kylekatarnls/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2018-10-25T13:22:16Z","updated_at":"2018-11-06T16:19:48Z","closed_at":"2018-11-06T09:20:08Z","author_association":"NONE","body":"Hello,\r\n\r\nI encountered an issue with the following code:\r\n```pug\r\na.footer-group-link(\r\n  href = row.url,\r\n  target = row.is_blank ? '_blank' : null,\r\n  rel = row.nofollow ? 'nofollow' : null,\r\n) !{row.title}\r\n```\r\n\r\nI expected to get a [link tag](https://codepen.io/radiocity/pen/LgqbPZ?editors=1000) with optional attributes\r\n\r\nBut I actually get:\r\n```\r\nErrorException [ Parse Error ]: syntax error, unexpected ')'\r\n/www/vendor/phug/renderer/src/Phug/Renderer/Adapter/EvalAdapter.php(12) : eval()'d code [ 2128 ]\r\n```\r\n\r\n[pug-php/pug](https://github.com/pug-php/pug) requires ternary conditional operator to be defined inside brackets, but [pugjs](https://github.com/pugjs/pug) ignores brackets at all. \r\nSo, following code would work with both libraries:\r\n```pug\r\na.footer-group-link(\r\n  href = row.url,\r\n  target = (row.is_blank ? '_blank' : null),\r\n  rel = (row.nofollow ? 'nofollow' : null),\r\n) !{row.title}\r\n```\r\n\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/pug-php/pug/issues/comments/436313053","html_url":"https://github.com/pug-php/pug/issues/207#issuecomment-436313053","issue_url":"https://api.github.com/repos/pug-php/pug/issues/207","id":436313053,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNjMxMzA1Mw==","user":{"login":"kylekatarnls","id":5966783,"node_id":"MDQ6VXNlcjU5NjY3ODM=","avatar_url":"https://avatars1.githubusercontent.com/u/5966783?v=4","gravatar_id":"","url":"https://api.github.com/users/kylekatarnls","html_url":"https://github.com/kylekatarnls","followers_url":"https://api.github.com/users/kylekatarnls/followers","following_url":"https://api.github.com/users/kylekatarnls/following{/other_user}","gists_url":"https://api.github.com/users/kylekatarnls/gists{/gist_id}","starred_url":"https://api.github.com/users/kylekatarnls/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kylekatarnls/subscriptions","organizations_url":"https://api.github.com/users/kylekatarnls/orgs","repos_url":"https://api.github.com/users/kylekatarnls/repos","events_url":"https://api.github.com/users/kylekatarnls/events{/privacy}","received_events_url":"https://api.github.com/users/kylekatarnls/received_events","type":"User","site_admin":false},"created_at":"2018-11-06T16:19:48Z","updated_at":"2018-11-06T16:19:48Z","author_association":"MEMBER","body":"Fixed via phug/lexer 0.5.29, you can run `composer update` to get it working without brackets."}}
{"actor":{"display_login":"kylekatarnls"}}