{"action":"created","issue":{"url":"https://api.github.com/repos/jadejs/jade/issues/2148","labels_url":"https://api.github.com/repos/jadejs/jade/issues/2148/labels{/name}","comments_url":"https://api.github.com/repos/jadejs/jade/issues/2148/comments","events_url":"https://api.github.com/repos/jadejs/jade/issues/2148/events","html_url":"https://github.com/jadejs/jade/issues/2148","id":113970287,"number":2148,"title":"Cannot seem to use inline javascript to create mixin calls","user":{"login":"mooror","id":6110819,"avatar_url":"https://avatars.githubusercontent.com/u/6110819?v=3","gravatar_id":"","url":"https://api.github.com/users/mooror","html_url":"https://github.com/mooror","followers_url":"https://api.github.com/users/mooror/followers","following_url":"https://api.github.com/users/mooror/following{/other_user}","gists_url":"https://api.github.com/users/mooror/gists{/gist_id}","starred_url":"https://api.github.com/users/mooror/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mooror/subscriptions","organizations_url":"https://api.github.com/users/mooror/orgs","repos_url":"https://api.github.com/users/mooror/repos","events_url":"https://api.github.com/users/mooror/events{/privacy}","received_events_url":"https://api.github.com/users/mooror/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-29T03:15:21Z","updated_at":"2015-10-29T03:58:27Z","closed_at":null,"body":"So Im trying to create use inline javascript in jade to create mixin calls. However I seem to be hitting some problems (perhaps javascript is handled after the jade has already done its mixin parsing?). For example, this simple example:\r\n```\r\n- var mixinCall = \"+sl-reversal('reverse')\";\r\n#{mixinCall}\r\n```\r\ncompiles to this\r\n```\r\n<+sl-reversal('reverse')></+sl-reversal('reverse')>\r\n```\r\n\r\nNot sure why this is but I would love if someone would tell me how to fix this.\r\n\r\nThanks in advance,\r\nMooror\r\n"},"comment":{"url":"https://api.github.com/repos/jadejs/jade/issues/comments/152069339","html_url":"https://github.com/jadejs/jade/issues/2148#issuecomment-152069339","issue_url":"https://api.github.com/repos/jadejs/jade/issues/2148","id":152069339,"user":{"login":"TimothyGu","id":1538624,"avatar_url":"https://avatars.githubusercontent.com/u/1538624?v=3","gravatar_id":"","url":"https://api.github.com/users/TimothyGu","html_url":"https://github.com/TimothyGu","followers_url":"https://api.github.com/users/TimothyGu/followers","following_url":"https://api.github.com/users/TimothyGu/following{/other_user}","gists_url":"https://api.github.com/users/TimothyGu/gists{/gist_id}","starred_url":"https://api.github.com/users/TimothyGu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TimothyGu/subscriptions","organizations_url":"https://api.github.com/users/TimothyGu/orgs","repos_url":"https://api.github.com/users/TimothyGu/repos","events_url":"https://api.github.com/users/TimothyGu/events{/privacy}","received_events_url":"https://api.github.com/users/TimothyGu/received_events","type":"User","site_admin":false},"created_at":"2015-10-29T03:58:27Z","updated_at":"2015-10-29T03:58:27Z","body":"Use one of these:\r\n\r\n```jade\r\n- var mixinCall = \"sl-reversal\";\r\n+#{mixinCall}('reverse')\r\n```\r\n\r\n```jade\r\n- var mixinCall = \"sl-reversal\";\r\n- var mixinArg = \"reverse\";\r\n+#{mixinCall}(mixinArg)\r\n```\r\n\r\n```jade\r\n- var mixinCall = function () {\r\n  +sl-reversal('reverse')\r\n- }\r\n\r\n- mixinCall()\r\n```\r\n\r\nFor future questions, please consider using our [Gitter chatroom](https://gitter.im/jadejs/jade) rather than our _issue_ tracker. Thanks."}}