{"action":"created","issue":{"url":"https://api.github.com/repos/ember-cli/ember-cli/issues/4333","labels_url":"https://api.github.com/repos/ember-cli/ember-cli/issues/4333/labels{/name}","comments_url":"https://api.github.com/repos/ember-cli/ember-cli/issues/4333/comments","events_url":"https://api.github.com/repos/ember-cli/ember-cli/issues/4333/events","html_url":"https://github.com/ember-cli/ember-cli/issues/4333","id":90507889,"number":4333,"title":"private api usage in blueprints","user":{"login":"eccegordo","id":497659,"avatar_url":"https://avatars.githubusercontent.com/u/497659?v=3","gravatar_id":"","url":"https://api.github.com/users/eccegordo","html_url":"https://github.com/eccegordo","followers_url":"https://api.github.com/users/eccegordo/followers","following_url":"https://api.github.com/users/eccegordo/following{/other_user}","gists_url":"https://api.github.com/users/eccegordo/gists{/gist_id}","starred_url":"https://api.github.com/users/eccegordo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eccegordo/subscriptions","organizations_url":"https://api.github.com/users/eccegordo/orgs","repos_url":"https://api.github.com/users/eccegordo/repos","events_url":"https://api.github.com/users/eccegordo/events{/privacy}","received_events_url":"https://api.github.com/users/eccegordo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-06-23T22:39:16Z","updated_at":"2015-06-24T01:26:45Z","closed_at":null,"body":"This has probably been discussed elsewhere. But should we expunge the use of private API code in blueprints? \r\n\r\nOne example (I think)\r\n\r\ngenerate an in-repo addon and then generate an in addon component\r\n\r\n```\r\nember g component x-foo -ir my-addon\r\n```\r\n\r\nRenders something like this:\r\n\r\n```\r\nimport Ember from 'ember';\r\nimport layout from '../templates/components/x-foo';\r\n\r\nexport default Ember.Component.extend({\r\n  layout: layout\r\n});\r\n```\r\n\r\nLooks to be private API\r\nhttp://emberjs.com/api/classes/Ember.Component.html#property_layout\r\n\r\nWhat does layout do here? If I interpret the docs correctly it seems to be a way to supersede the template, so basically we are giving the addon ability to define layout before everybody else.\r\n\r\nIf I am correct seems reasonable.\r\n\r\nBut raises question if we are going to be strict about private vs public should probably avoid encouraging use of private API, (if reasonable and feasible).\r\n\r\nIf this can't be done without layout then why is `layout` still private? Is that the bug or is the blueprint the bug, or is there no bug here?\r\n\r\nI am not particularly religious about this. Just curious.\r\n "},"comment":{"url":"https://api.github.com/repos/ember-cli/ember-cli/issues/comments/114692039","html_url":"https://github.com/ember-cli/ember-cli/issues/4333#issuecomment-114692039","issue_url":"https://api.github.com/repos/ember-cli/ember-cli/issues/4333","id":114692039,"user":{"login":"stefanpenner","id":1377,"avatar_url":"https://avatars.githubusercontent.com/u/1377?v=3","gravatar_id":"","url":"https://api.github.com/users/stefanpenner","html_url":"https://github.com/stefanpenner","followers_url":"https://api.github.com/users/stefanpenner/followers","following_url":"https://api.github.com/users/stefanpenner/following{/other_user}","gists_url":"https://api.github.com/users/stefanpenner/gists{/gist_id}","starred_url":"https://api.github.com/users/stefanpenner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stefanpenner/subscriptions","organizations_url":"https://api.github.com/users/stefanpenner/orgs","repos_url":"https://api.github.com/users/stefanpenner/repos","events_url":"https://api.github.com/users/stefanpenner/events{/privacy}","received_events_url":"https://api.github.com/users/stefanpenner/received_events","type":"User","site_admin":false},"created_at":"2015-06-24T01:26:45Z","updated_at":"2015-06-24T01:26:45Z","body":"> As I mentioned in emberjs/rfcs#56 (comment):\r\n\r\nya, should we flip this to public? "}}