{"action":"closed","number":10244,"pull_request":{"url":"https://api.github.com/repos/emberjs/ember.js/pulls/10244","id":27578458,"html_url":"https://github.com/emberjs/ember.js/pull/10244","diff_url":"https://github.com/emberjs/ember.js/pull/10244.diff","patch_url":"https://github.com/emberjs/ember.js/pull/10244.patch","issue_url":"https://api.github.com/repos/emberjs/ember.js/issues/10244","number":10244,"state":"closed","locked":false,"title":"[FEATURE ember-htmlbars-scoped-helpers]","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},"body":"Allows locally scoped helpers to be used in a components layout (or in the template block if using block params).\n\n----\n\nLocal Helpers Example:\n\n```javascript\n// app/components/x-foo.js\n\nimport Ember from \"ember\";\n\nvar makeBoundHelper = Ember.HTMLBars.makeBoundHelper;\n\nexport default Ember.Component.extend({\n  capitalize: makeBoundHelper(function(params) {\n    return params[0].toUpperCase();\n  })\n});\n```\n\n```handlebars\n{{! app/templates/components/x-foo.hbs }}\n\n{{capitalize 'blahzorz'}} === BLAHZORZ\n```\n\n----\n\nBlock Params Example:\n\n```javascript\n// app/components/form-for.js\n\nimport Ember from \"ember\";\nimport FormForInput from \"./helpers/input\";\n\nvar makeViewHelper = Ember.HTMLBars.makeViewHelper;\n\nexport default Ember.Component.extend({\n  formHelpers: {\n    input: makeViewHelper(FormForInput)\n  }\n});\n```\n\n```handlebars\n{{! app/templates/components/form-for.hbs }}\n\n{{yield formHelpers}}\n```\n\n```handlebars\n{{! app/templates/post/new.hbs }}\n\n{{#form-for as |f|}}\n  {{f.input label=\"Title\" value=model.title}}\n{{/form-for}}\n```","created_at":"2015-01-18T22:48:02Z","updated_at":"2015-08-02T19:04:32Z","closed_at":"2015-08-02T19:04:32Z","merged_at":null,"merge_commit_sha":"9045bec947b5e56f26a4b65da00ffee5467fdf3f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/emberjs/ember.js/pulls/10244/commits","review_comments_url":"https://api.github.com/repos/emberjs/ember.js/pulls/10244/comments","review_comment_url":"https://api.github.com/repos/emberjs/ember.js/pulls/comments{/number}","comments_url":"https://api.github.com/repos/emberjs/ember.js/issues/10244/comments","statuses_url":"https://api.github.com/repos/emberjs/ember.js/statuses/838d599a0d622ac693da6b4c517cd46929a23b40","head":{"label":"rwjblue:ember-htmlbars-scoped-helpers","ref":"ember-htmlbars-scoped-helpers","sha":"838d599a0d622ac693da6b4c517cd46929a23b40","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},"repo":{"id":12009595,"name":"ember.js","full_name":"rwjblue/ember.js","owner":{"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},"private":false,"html_url":"https://github.com/rwjblue/ember.js","description":"Ember.js - A JavaScript framework for creating ambitious web applications","fork":true,"url":"https://api.github.com/repos/rwjblue/ember.js","forks_url":"https://api.github.com/repos/rwjblue/ember.js/forks","keys_url":"https://api.github.com/repos/rwjblue/ember.js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rwjblue/ember.js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rwjblue/ember.js/teams","hooks_url":"https://api.github.com/repos/rwjblue/ember.js/hooks","issue_events_url":"https://api.github.com/repos/rwjblue/ember.js/issues/events{/number}","events_url":"https://api.github.com/repos/rwjblue/ember.js/events","assignees_url":"https://api.github.com/repos/rwjblue/ember.js/assignees{/user}","branches_url":"https://api.github.com/repos/rwjblue/ember.js/branches{/branch}","tags_url":"https://api.github.com/repos/rwjblue/ember.js/tags","blobs_url":"https://api.github.com/repos/rwjblue/ember.js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rwjblue/ember.js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rwjblue/ember.js/git/refs{/sha}","trees_url":"https://api.github.com/repos/rwjblue/ember.js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rwjblue/ember.js/statuses/{sha}","languages_url":"https://api.github.com/repos/rwjblue/ember.js/languages","stargazers_url":"https://api.github.com/repos/rwjblue/ember.js/stargazers","contributors_url":"https://api.github.com/repos/rwjblue/ember.js/contributors","subscribers_url":"https://api.github.com/repos/rwjblue/ember.js/subscribers","subscription_url":"https://api.github.com/repos/rwjblue/ember.js/subscription","commits_url":"https://api.github.com/repos/rwjblue/ember.js/commits{/sha}","git_commits_url":"https://api.github.com/repos/rwjblue/ember.js/git/commits{/sha}","comments_url":"https://api.github.com/repos/rwjblue/ember.js/comments{/number}","issue_comment_url":"https://api.github.com/repos/rwjblue/ember.js/issues/comments{/number}","contents_url":"https://api.github.com/repos/rwjblue/ember.js/contents/{+path}","compare_url":"https://api.github.com/repos/rwjblue/ember.js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rwjblue/ember.js/merges","archive_url":"https://api.github.com/repos/rwjblue/ember.js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rwjblue/ember.js/downloads","issues_url":"https://api.github.com/repos/rwjblue/ember.js/issues{/number}","pulls_url":"https://api.github.com/repos/rwjblue/ember.js/pulls{/number}","milestones_url":"https://api.github.com/repos/rwjblue/ember.js/milestones{/number}","notifications_url":"https://api.github.com/repos/rwjblue/ember.js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rwjblue/ember.js/labels{/name}","releases_url":"https://api.github.com/repos/rwjblue/ember.js/releases{/id}","created_at":"2013-08-09T20:05:11Z","updated_at":"2014-07-18T12:44:07Z","pushed_at":"2015-08-02T19:03:20Z","git_url":"git://github.com/rwjblue/ember.js.git","ssh_url":"git@github.com:rwjblue/ember.js.git","clone_url":"https://github.com/rwjblue/ember.js.git","svn_url":"https://github.com/rwjblue/ember.js","homepage":"http://www.emberjs.com","size":29217,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"emberjs:master","ref":"master","sha":"7290cd090d68c5b09f66bb7920014d026b616103","user":{"login":"emberjs","id":1253363,"avatar_url":"https://avatars.githubusercontent.com/u/1253363?v=3","gravatar_id":"","url":"https://api.github.com/users/emberjs","html_url":"https://github.com/emberjs","followers_url":"https://api.github.com/users/emberjs/followers","following_url":"https://api.github.com/users/emberjs/following{/other_user}","gists_url":"https://api.github.com/users/emberjs/gists{/gist_id}","starred_url":"https://api.github.com/users/emberjs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emberjs/subscriptions","organizations_url":"https://api.github.com/users/emberjs/orgs","repos_url":"https://api.github.com/users/emberjs/repos","events_url":"https://api.github.com/users/emberjs/events{/privacy}","received_events_url":"https://api.github.com/users/emberjs/received_events","type":"Organization","site_admin":false},"repo":{"id":1801829,"name":"ember.js","full_name":"emberjs/ember.js","owner":{"login":"emberjs","id":1253363,"avatar_url":"https://avatars.githubusercontent.com/u/1253363?v=3","gravatar_id":"","url":"https://api.github.com/users/emberjs","html_url":"https://github.com/emberjs","followers_url":"https://api.github.com/users/emberjs/followers","following_url":"https://api.github.com/users/emberjs/following{/other_user}","gists_url":"https://api.github.com/users/emberjs/gists{/gist_id}","starred_url":"https://api.github.com/users/emberjs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emberjs/subscriptions","organizations_url":"https://api.github.com/users/emberjs/orgs","repos_url":"https://api.github.com/users/emberjs/repos","events_url":"https://api.github.com/users/emberjs/events{/privacy}","received_events_url":"https://api.github.com/users/emberjs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/emberjs/ember.js","description":"Ember.js - A JavaScript framework for creating ambitious web applications","fork":false,"url":"https://api.github.com/repos/emberjs/ember.js","forks_url":"https://api.github.com/repos/emberjs/ember.js/forks","keys_url":"https://api.github.com/repos/emberjs/ember.js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/emberjs/ember.js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/emberjs/ember.js/teams","hooks_url":"https://api.github.com/repos/emberjs/ember.js/hooks","issue_events_url":"https://api.github.com/repos/emberjs/ember.js/issues/events{/number}","events_url":"https://api.github.com/repos/emberjs/ember.js/events","assignees_url":"https://api.github.com/repos/emberjs/ember.js/assignees{/user}","branches_url":"https://api.github.com/repos/emberjs/ember.js/branches{/branch}","tags_url":"https://api.github.com/repos/emberjs/ember.js/tags","blobs_url":"https://api.github.com/repos/emberjs/ember.js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/emberjs/ember.js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/emberjs/ember.js/git/refs{/sha}","trees_url":"https://api.github.com/repos/emberjs/ember.js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/emberjs/ember.js/statuses/{sha}","languages_url":"https://api.github.com/repos/emberjs/ember.js/languages","stargazers_url":"https://api.github.com/repos/emberjs/ember.js/stargazers","contributors_url":"https://api.github.com/repos/emberjs/ember.js/contributors","subscribers_url":"https://api.github.com/repos/emberjs/ember.js/subscribers","subscription_url":"https://api.github.com/repos/emberjs/ember.js/subscription","commits_url":"https://api.github.com/repos/emberjs/ember.js/commits{/sha}","git_commits_url":"https://api.github.com/repos/emberjs/ember.js/git/commits{/sha}","comments_url":"https://api.github.com/repos/emberjs/ember.js/comments{/number}","issue_comment_url":"https://api.github.com/repos/emberjs/ember.js/issues/comments{/number}","contents_url":"https://api.github.com/repos/emberjs/ember.js/contents/{+path}","compare_url":"https://api.github.com/repos/emberjs/ember.js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/emberjs/ember.js/merges","archive_url":"https://api.github.com/repos/emberjs/ember.js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/emberjs/ember.js/downloads","issues_url":"https://api.github.com/repos/emberjs/ember.js/issues{/number}","pulls_url":"https://api.github.com/repos/emberjs/ember.js/pulls{/number}","milestones_url":"https://api.github.com/repos/emberjs/ember.js/milestones{/number}","notifications_url":"https://api.github.com/repos/emberjs/ember.js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/emberjs/ember.js/labels{/name}","releases_url":"https://api.github.com/repos/emberjs/ember.js/releases{/id}","created_at":"2011-05-25T23:39:40Z","updated_at":"2015-08-02T06:34:38Z","pushed_at":"2015-08-02T19:03:18Z","git_url":"git://github.com/emberjs/ember.js.git","ssh_url":"git@github.com:emberjs/ember.js.git","clone_url":"https://github.com/emberjs/ember.js.git","svn_url":"https://github.com/emberjs/ember.js","homepage":"http://www.emberjs.com","size":87290,"stargazers_count":14392,"watchers_count":14392,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":3083,"mirror_url":null,"open_issues_count":391,"forks":3083,"open_issues":391,"watchers":14392,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/emberjs/ember.js/pulls/10244"},"html":{"href":"https://github.com/emberjs/ember.js/pull/10244"},"issue":{"href":"https://api.github.com/repos/emberjs/ember.js/issues/10244"},"comments":{"href":"https://api.github.com/repos/emberjs/ember.js/issues/10244/comments"},"review_comments":{"href":"https://api.github.com/repos/emberjs/ember.js/pulls/10244/comments"},"review_comment":{"href":"https://api.github.com/repos/emberjs/ember.js/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/emberjs/ember.js/pulls/10244/commits"},"statuses":{"href":"https://api.github.com/repos/emberjs/ember.js/statuses/838d599a0d622ac693da6b4c517cd46929a23b40"}},"merged":false,"mergeable":false,"mergeable_state":"dirty","merged_by":null,"comments":39,"review_comments":1,"commits":1,"additions":199,"deletions":12,"changed_files":5}}