{"action":"created","issue":{"url":"https://api.github.com/repos/jadejs/jade/issues/2119","labels_url":"https://api.github.com/repos/jadejs/jade/issues/2119/labels{/name}","comments_url":"https://api.github.com/repos/jadejs/jade/issues/2119/comments","events_url":"https://api.github.com/repos/jadejs/jade/issues/2119/events","html_url":"https://github.com/jadejs/jade/issues/2119","id":109623479,"number":2119,"title":"Bug when escaping arrays as attribute for mixins","user":{"login":"chris-scheurle","id":6209236,"avatar_url":"https://avatars.githubusercontent.com/u/6209236?v=3","gravatar_id":"","url":"https://api.github.com/users/chris-scheurle","html_url":"https://github.com/chris-scheurle","followers_url":"https://api.github.com/users/chris-scheurle/followers","following_url":"https://api.github.com/users/chris-scheurle/following{/other_user}","gists_url":"https://api.github.com/users/chris-scheurle/gists{/gist_id}","starred_url":"https://api.github.com/users/chris-scheurle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chris-scheurle/subscriptions","organizations_url":"https://api.github.com/users/chris-scheurle/orgs","repos_url":"https://api.github.com/users/chris-scheurle/repos","events_url":"https://api.github.com/users/chris-scheurle/events{/privacy}","received_events_url":"https://api.github.com/users/chris-scheurle/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jadejs/jade/labels/mixin","name":"mixin","color":"0b02e1"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-10-03T13:33:04Z","updated_at":"2015-10-05T19:28:06Z","closed_at":"2015-10-05T12:50:15Z","body":"*Jade 1.11.0:*\r\n```jade\r\nmixin list\r\n\tif(typeof(attributes.entries) === 'object' && (attributes.entries instanceof Array) && attributes.entries.length > 0)\r\n\t\tul\r\n\t\t\teach entrie in attributes.entries\r\n\t\t\t\tli !{entrie}\r\n\telse\r\n\t\tp Not a list!\r\n\r\n//- works fine\r\n+list(entries=['1','2','3'])\r\n//- \"entries\" gets converted from array to string\r\n+list(entries=['1','2&3'])\r\n```\r\ncompiles to:\r\n```html\r\n<ul>\r\n\t<li>1</li>\r\n\t<li>2</li>\r\n\t<li>3</li>\r\n</ul>\r\n<p>Not a list!</p>\r\n```\r\nThis is just a simple example, but I have a lot of mixins that rely on arrays beeing passed as attributes. "},"comment":{"url":"https://api.github.com/repos/jadejs/jade/issues/comments/145640440","html_url":"https://github.com/jadejs/jade/issues/2119#issuecomment-145640440","issue_url":"https://api.github.com/repos/jadejs/jade/issues/2119","id":145640440,"user":{"login":"chris-scheurle","id":6209236,"avatar_url":"https://avatars.githubusercontent.com/u/6209236?v=3","gravatar_id":"","url":"https://api.github.com/users/chris-scheurle","html_url":"https://github.com/chris-scheurle","followers_url":"https://api.github.com/users/chris-scheurle/followers","following_url":"https://api.github.com/users/chris-scheurle/following{/other_user}","gists_url":"https://api.github.com/users/chris-scheurle/gists{/gist_id}","starred_url":"https://api.github.com/users/chris-scheurle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chris-scheurle/subscriptions","organizations_url":"https://api.github.com/users/chris-scheurle/orgs","repos_url":"https://api.github.com/users/chris-scheurle/repos","events_url":"https://api.github.com/users/chris-scheurle/events{/privacy}","received_events_url":"https://api.github.com/users/chris-scheurle/received_events","type":"User","site_admin":false},"created_at":"2015-10-05T19:28:06Z","updated_at":"2015-10-05T19:28:06Z","body":"> Oh I get what went wrong.\r\n\r\nIf you mean what went wrong in *my* scenario: *nope*.\r\nBut I'm glad I inadvertently inspired some improvement. :grinning:"}}