{"action":"created","issue":{"url":"https://api.github.com/repos/AddJam/ember-cli-pickadate/issues/4","labels_url":"https://api.github.com/repos/AddJam/ember-cli-pickadate/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/AddJam/ember-cli-pickadate/issues/4/comments","events_url":"https://api.github.com/repos/AddJam/ember-cli-pickadate/issues/4/events","html_url":"https://github.com/AddJam/ember-cli-pickadate/pull/4","id":103354471,"number":4,"title":"Let user specify theme","user":{"login":"ksykulev","id":230639,"avatar_url":"https://avatars.githubusercontent.com/u/230639?v=3","gravatar_id":"","url":"https://api.github.com/users/ksykulev","html_url":"https://github.com/ksykulev","followers_url":"https://api.github.com/users/ksykulev/followers","following_url":"https://api.github.com/users/ksykulev/following{/other_user}","gists_url":"https://api.github.com/users/ksykulev/gists{/gist_id}","starred_url":"https://api.github.com/users/ksykulev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ksykulev/subscriptions","organizations_url":"https://api.github.com/users/ksykulev/orgs","repos_url":"https://api.github.com/users/ksykulev/repos","events_url":"https://api.github.com/users/ksykulev/events{/privacy}","received_events_url":"https://api.github.com/users/ksykulev/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-26T20:11:39Z","updated_at":"2015-08-26T20:16:07Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/AddJam/ember-cli-pickadate/pulls/4","html_url":"https://github.com/AddJam/ember-cli-pickadate/pull/4","diff_url":"https://github.com/AddJam/ember-cli-pickadate/pull/4.diff","patch_url":"https://github.com/AddJam/ember-cli-pickadate/pull/4.patch"},"body":"A user can now specify a theme to use for pick-a-date. By default we use\r\nthe 'default' theme.\r\nTo override the theme you can pass it into the EmberApp instance in\r\nyour including application's ember-cli-build.js file\r\n```\r\nvar app = new EmberApp({\r\n  \"ember-cli-pickadate\": { theme: 'classic' }\r\n});\r\n```"},"comment":{"url":"https://api.github.com/repos/AddJam/ember-cli-pickadate/issues/comments/135158345","html_url":"https://github.com/AddJam/ember-cli-pickadate/pull/4#issuecomment-135158345","issue_url":"https://api.github.com/repos/AddJam/ember-cli-pickadate/issues/4","id":135158345,"user":{"login":"ksykulev","id":230639,"avatar_url":"https://avatars.githubusercontent.com/u/230639?v=3","gravatar_id":"","url":"https://api.github.com/users/ksykulev","html_url":"https://github.com/ksykulev","followers_url":"https://api.github.com/users/ksykulev/followers","following_url":"https://api.github.com/users/ksykulev/following{/other_user}","gists_url":"https://api.github.com/users/ksykulev/gists{/gist_id}","starred_url":"https://api.github.com/users/ksykulev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ksykulev/subscriptions","organizations_url":"https://api.github.com/users/ksykulev/orgs","repos_url":"https://api.github.com/users/ksykulev/repos","events_url":"https://api.github.com/users/ksykulev/events{/privacy}","received_events_url":"https://api.github.com/users/ksykulev/received_events","type":"User","site_admin":false},"created_at":"2015-08-26T20:16:07Z","updated_at":"2015-08-26T20:16:07Z","body":"Not sure if this is the \"right\" way to do this. But i've seen some other libraries do \"similar\" stuff:\r\nhttps://github.com/aexmachina/ember-cli-sass/blob/master/index.js#L55\r\nhttps://github.com/gdub22/ember-cli-less/blob/master/index.js#L39\r\n\r\nLet me know what you think.\r\nThe other options is to put this into config/environment.js\r\nThen the ember-addon environment.js gets\r\n```\r\nmodule.exports = function(/* environment, appConfig */) {\r\n  return {\"ember-cli-pickadate\": {theme: 'default'}};\r\n};\r\n```\r\nThe application importing the addon would have to include this into their config/environment.js\r\n```\r\nmodule.exports = function(environment) {\r\n  var ENV = {\r\n...\r\n    {\"ember-cli-pickadate\": {theme: 'classic'}}\r\n...\r\n  }\r\n}\r\n```"}}