{"action":"created","issue":{"url":"https://api.github.com/repos/codelv/enaml-web/issues/17","repository_url":"https://api.github.com/repos/codelv/enaml-web","labels_url":"https://api.github.com/repos/codelv/enaml-web/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/codelv/enaml-web/issues/17/comments","events_url":"https://api.github.com/repos/codelv/enaml-web/issues/17/events","html_url":"https://github.com/codelv/enaml-web/issues/17","id":370489006,"node_id":"MDU6SXNzdWUzNzA0ODkwMDY=","number":17,"title":"How to alternate classes ?","user":{"login":"olymk2","id":1034950,"node_id":"MDQ6VXNlcjEwMzQ5NTA=","avatar_url":"https://avatars0.githubusercontent.com/u/1034950?v=4","gravatar_id":"","url":"https://api.github.com/users/olymk2","html_url":"https://github.com/olymk2","followers_url":"https://api.github.com/users/olymk2/followers","following_url":"https://api.github.com/users/olymk2/following{/other_user}","gists_url":"https://api.github.com/users/olymk2/gists{/gist_id}","starred_url":"https://api.github.com/users/olymk2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olymk2/subscriptions","organizations_url":"https://api.github.com/users/olymk2/orgs","repos_url":"https://api.github.com/users/olymk2/repos","events_url":"https://api.github.com/users/olymk2/events{/privacy}","received_events_url":"https://api.github.com/users/olymk2/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-10-16T08:10:40Z","updated_at":"2018-10-16T19:23:10Z","closed_at":"2018-10-16T19:23:10Z","author_association":"NONE","body":"Been trying out enaml I can see it has conditionals is this the best way to do this something like this ?\r\n\r\n```\r\nconditional << 2 % index\r\nconditional:\r\n    Div:\r\n        cls = 'one'\r\nconditional:\r\n    Div:\r\n        cls = 'two'\r\n```\r\n\r\nor is there a way to do this in a single line ?"},"comment":{"url":"https://api.github.com/repos/codelv/enaml-web/issues/comments/430366224","html_url":"https://github.com/codelv/enaml-web/issues/17#issuecomment-430366224","issue_url":"https://api.github.com/repos/codelv/enaml-web/issues/17","id":430366224,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMDM2NjIyNA==","user":{"login":"olymk2","id":1034950,"node_id":"MDQ6VXNlcjEwMzQ5NTA=","avatar_url":"https://avatars0.githubusercontent.com/u/1034950?v=4","gravatar_id":"","url":"https://api.github.com/users/olymk2","html_url":"https://github.com/olymk2","followers_url":"https://api.github.com/users/olymk2/followers","following_url":"https://api.github.com/users/olymk2/following{/other_user}","gists_url":"https://api.github.com/users/olymk2/gists{/gist_id}","starred_url":"https://api.github.com/users/olymk2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olymk2/subscriptions","organizations_url":"https://api.github.com/users/olymk2/orgs","repos_url":"https://api.github.com/users/olymk2/repos","events_url":"https://api.github.com/users/olymk2/events{/privacy}","received_events_url":"https://api.github.com/users/olymk2/received_events","type":"User","site_admin":false},"created_at":"2018-10-16T19:23:10Z","updated_at":"2018-10-16T19:23:10Z","author_association":"NONE","body":"Cheers a more complete working version that I am using how any future people :)\r\n```\r\n        Looper:\r\n            iterable << cards\r\n            Div:\r\n                cls << 'row deep-purple lighten-4' if loop_index % 2 else 'row deep-purple lighten-5'\r\n                Card:\r\n                    card << loop_item\r\n```"}}
{"actor":{"display_login":"olymk2"}}