{"action":"created","issue":{"url":"https://api.github.com/repos/pangratz/ember-cli-htmlbars-inline-precompile/issues/7","labels_url":"https://api.github.com/repos/pangratz/ember-cli-htmlbars-inline-precompile/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/pangratz/ember-cli-htmlbars-inline-precompile/issues/7/comments","events_url":"https://api.github.com/repos/pangratz/ember-cli-htmlbars-inline-precompile/issues/7/events","html_url":"https://github.com/pangratz/ember-cli-htmlbars-inline-precompile/issues/7","id":78615952,"number":7,"title":"Registry Integration","user":{"login":"rwjblue","id":12637,"avatar_url":"https://avatars.githubusercontent.com/u/12637?v=3","gravatar_id":"","url":"https://api.github.com/users/rwjblue","html_url":"https://github.com/rwjblue","followers_url":"https://api.github.com/users/rwjblue/followers","following_url":"https://api.github.com/users/rwjblue/following{/other_user}","gists_url":"https://api.github.com/users/rwjblue/gists{/gist_id}","starred_url":"https://api.github.com/users/rwjblue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rwjblue/subscriptions","organizations_url":"https://api.github.com/users/rwjblue/orgs","repos_url":"https://api.github.com/users/rwjblue/repos","events_url":"https://api.github.com/users/rwjblue/events{/privacy}","received_events_url":"https://api.github.com/users/rwjblue/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-05-20T17:24:24Z","updated_at":"2015-05-20T20:24:42Z","closed_at":null,"body":"I am opening an issue here to dump some thoughts on how to take this addon a bit further, and how things like this can work in the future.\r\n\r\nRandom musings / brain dump:\r\n\r\n* [registration should use the registry](https://github.com/pangratz/ember-cli-htmlbars-inline-precompile/blob/master/index.js#L13-L21) and [ember-cli-babel](https://github.com/babel/ember-cli-babel/blob/master/index.js#L32) should be getting the available plugins out of the registry.\r\n\r\n  This prevents users from having to manually edit the `Brocfile.js` as described in the README here, and also allows super easy infrastructure for future babel plugins in the Ember CLI world.\r\n\r\n  ember-cli-htmlbars does this exact thing to allow addons to add HTMLBars AST plugins ([see here](https://github.com/ember-cli/ember-cli-htmlbars/blob/master/ember-addon-main.js#L63-L87)).\r\n\r\n* Use ember-cli-htmlbars's to do the precompilation (or at least provide the options to `compile` so that AST plugins are available to precompilation).\r\n\r\n* Add to ember-cli apps/addons by default as a devDep.  Once the above items are resolved, I would like to add this to ember-cli's default out of the box setup.\r\n\r\n@pangratz - Does this all make sense?  Can you help spearhead these changes?"},"comment":{"url":"https://api.github.com/repos/pangratz/ember-cli-htmlbars-inline-precompile/issues/comments/104024562","html_url":"https://github.com/pangratz/ember-cli-htmlbars-inline-precompile/issues/7#issuecomment-104024562","issue_url":"https://api.github.com/repos/pangratz/ember-cli-htmlbars-inline-precompile/issues/7","id":104024562,"user":{"login":"pangratz","id":341877,"avatar_url":"https://avatars.githubusercontent.com/u/341877?v=3","gravatar_id":"","url":"https://api.github.com/users/pangratz","html_url":"https://github.com/pangratz","followers_url":"https://api.github.com/users/pangratz/followers","following_url":"https://api.github.com/users/pangratz/following{/other_user}","gists_url":"https://api.github.com/users/pangratz/gists{/gist_id}","starred_url":"https://api.github.com/users/pangratz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pangratz/subscriptions","organizations_url":"https://api.github.com/users/pangratz/orgs","repos_url":"https://api.github.com/users/pangratz/repos","events_url":"https://api.github.com/users/pangratz/events{/privacy}","received_events_url":"https://api.github.com/users/pangratz/received_events","type":"User","site_admin":false},"created_at":"2015-05-20T20:24:42Z","updated_at":"2015-05-20T20:24:42Z","body":"Ah, right. Thanks, will do that."}}