{"action":"created","issue":{"url":"https://api.github.com/repos/peerlibrary/meteor-blaze-components/issues/44","labels_url":"https://api.github.com/repos/peerlibrary/meteor-blaze-components/issues/44/labels{/name}","comments_url":"https://api.github.com/repos/peerlibrary/meteor-blaze-components/issues/44/comments","events_url":"https://api.github.com/repos/peerlibrary/meteor-blaze-components/issues/44/events","html_url":"https://github.com/peerlibrary/meteor-blaze-components/issues/44","id":72437601,"number":44,"title":"Q: Is Iron Router able to render components via yield?","user":{"login":"rclai","id":1316261,"avatar_url":"https://avatars.githubusercontent.com/u/1316261?v=3","gravatar_id":"","url":"https://api.github.com/users/rclai","html_url":"https://github.com/rclai","followers_url":"https://api.github.com/users/rclai/followers","following_url":"https://api.github.com/users/rclai/following{/other_user}","gists_url":"https://api.github.com/users/rclai/gists{/gist_id}","starred_url":"https://api.github.com/users/rclai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rclai/subscriptions","organizations_url":"https://api.github.com/users/rclai/orgs","repos_url":"https://api.github.com/users/rclai/repos","events_url":"https://api.github.com/users/rclai/events{/privacy}","received_events_url":"https://api.github.com/users/rclai/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/peerlibrary/meteor-blaze-components/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":28,"created_at":"2015-05-01T13:53:21Z","updated_at":"2015-10-21T07:09:36Z","closed_at":null,"body":"```js\r\nRouter.route('/', {\r\n  name: 'MyRoute',\r\n  template: 'MyComponent'\r\n});\r\n```"},"comment":{"url":"https://api.github.com/repos/peerlibrary/meteor-blaze-components/issues/comments/149800592","html_url":"https://github.com/peerlibrary/meteor-blaze-components/issues/44#issuecomment-149800592","issue_url":"https://api.github.com/repos/peerlibrary/meteor-blaze-components/issues/44","id":149800592,"user":{"login":"MatejJan","id":565736,"avatar_url":"https://avatars.githubusercontent.com/u/565736?v=3","gravatar_id":"","url":"https://api.github.com/users/MatejJan","html_url":"https://github.com/MatejJan","followers_url":"https://api.github.com/users/MatejJan/followers","following_url":"https://api.github.com/users/MatejJan/following{/other_user}","gists_url":"https://api.github.com/users/MatejJan/gists{/gist_id}","starred_url":"https://api.github.com/users/MatejJan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MatejJan/subscriptions","organizations_url":"https://api.github.com/users/MatejJan/orgs","repos_url":"https://api.github.com/users/MatejJan/repos","events_url":"https://api.github.com/users/MatejJan/events{/privacy}","received_events_url":"https://api.github.com/users/MatejJan/received_events","type":"User","site_admin":false},"created_at":"2015-10-21T07:09:36Z","updated_at":"2015-10-21T07:09:36Z","body":"The easiest solution I found is to simply wrap the component into a normal template.\r\n\r\n```\r\n<template name=\"myComponent\">\r\n  {{> MyComponent}}\r\n</template>\r\n\r\n<template name=\"MyComponent\">\r\n  …\r\n</template>\r\n```\r\n\r\nYou would then point the router to render `myComponent` template."}}