{"action":"created","comment":{"url":"https://api.github.com/repos/emberjs/guides/pulls/comments/26631921","id":26631921,"diff_hunk":"@@ -15,12 +15,20 @@ Let's look at a simple example. You're working on a website for your\n client, and one of the requirements is to have the current date on the index page in human readable format. This is a perfect place to use a\n Handlebars helper that \"pretty prints\" the current date:\n \n-```javascript\n-Ember.Handlebars.registerBoundHelper('currentDate', function() {\n+```app/helpers/current-date.js\n+export default Ember.Handlebars.makeBoundHelper(function() {\n   return moment().format('LL');\n });\n ```\n \n+```app/route/application.js\n+import currentDate from './helpers/current-date.js';","path":"source/cookbook/user_interface_and_interaction/displaying_formatted_dates_with_moment_js.md","position":13,"original_position":13,"commit_id":"6c2dee4023f56d5306e42e8a8141defc3fb1f6ae","original_commit_id":"6c2dee4023f56d5306e42e8a8141defc3fb1f6ae","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":"Not needed","created_at":"2015-03-18T01:22:37Z","updated_at":"2015-03-18T01:22:37Z","html_url":"https://github.com/emberjs/guides/pull/25#discussion_r26631921","pull_request_url":"https://api.github.com/repos/emberjs/guides/pulls/25","_links":{"self":{"href":"https://api.github.com/repos/emberjs/guides/pulls/comments/26631921"},"html":{"href":"https://github.com/emberjs/guides/pull/25#discussion_r26631921"},"pull_request":{"href":"https://api.github.com/repos/emberjs/guides/pulls/25"}}},"pull_request":{"url":"https://api.github.com/repos/emberjs/guides/pulls/25","id":30384692,"html_url":"https://github.com/emberjs/guides/pull/25","diff_url":"https://github.com/emberjs/guides/pull/25.diff","patch_url":"https://github.com/emberjs/guides/pull/25.patch","issue_url":"https://api.github.com/repos/emberjs/guides/issues/25","number":25,"state":"open","locked":false,"title":"Update: Ember cookbook to cli","user":{"login":"nicolechung","id":771170,"avatar_url":"https://avatars.githubusercontent.com/u/771170?v=3","gravatar_id":"","url":"https://api.github.com/users/nicolechung","html_url":"https://github.com/nicolechung","followers_url":"https://api.github.com/users/nicolechung/followers","following_url":"https://api.github.com/users/nicolechung/following{/other_user}","gists_url":"https://api.github.com/users/nicolechung/gists{/gist_id}","starred_url":"https://api.github.com/users/nicolechung/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicolechung/subscriptions","organizations_url":"https://api.github.com/users/nicolechung/orgs","repos_url":"https://api.github.com/users/nicolechung/repos","events_url":"https://api.github.com/users/nicolechung/events{/privacy}","received_events_url":"https://api.github.com/users/nicolechung/received_events","type":"User","site_admin":false},"body":"Cookbooks to ember-cli.\r\n\r\nJSbins: I was using the free (non-account) version to create the bins...is this going to be a problem? Do the previews expire?\r\n","created_at":"2015-03-03T15:47:15Z","updated_at":"2015-03-18T01:22:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"46872762b32f57d2f5ac21ef980ed6941031d32d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/emberjs/guides/pulls/25/commits","review_comments_url":"https://api.github.com/repos/emberjs/guides/pulls/25/comments","review_comment_url":"https://api.github.com/repos/emberjs/guides/pulls/comments{/number}","comments_url":"https://api.github.com/repos/emberjs/guides/issues/25/comments","statuses_url":"https://api.github.com/repos/emberjs/guides/statuses/6c2dee4023f56d5306e42e8a8141defc3fb1f6ae","head":{"label":"nicolechung:feature/cookbooks-to-cli","ref":"feature/cookbooks-to-cli","sha":"6c2dee4023f56d5306e42e8a8141defc3fb1f6ae","user":{"login":"nicolechung","id":771170,"avatar_url":"https://avatars.githubusercontent.com/u/771170?v=3","gravatar_id":"","url":"https://api.github.com/users/nicolechung","html_url":"https://github.com/nicolechung","followers_url":"https://api.github.com/users/nicolechung/followers","following_url":"https://api.github.com/users/nicolechung/following{/other_user}","gists_url":"https://api.github.com/users/nicolechung/gists{/gist_id}","starred_url":"https://api.github.com/users/nicolechung/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicolechung/subscriptions","organizations_url":"https://api.github.com/users/nicolechung/orgs","repos_url":"https://api.github.com/users/nicolechung/repos","events_url":"https://api.github.com/users/nicolechung/events{/privacy}","received_events_url":"https://api.github.com/users/nicolechung/received_events","type":"User","site_admin":false},"repo":{"id":31313634,"name":"guides","full_name":"nicolechung/guides","owner":{"login":"nicolechung","id":771170,"avatar_url":"https://avatars.githubusercontent.com/u/771170?v=3","gravatar_id":"","url":"https://api.github.com/users/nicolechung","html_url":"https://github.com/nicolechung","followers_url":"https://api.github.com/users/nicolechung/followers","following_url":"https://api.github.com/users/nicolechung/following{/other_user}","gists_url":"https://api.github.com/users/nicolechung/gists{/gist_id}","starred_url":"https://api.github.com/users/nicolechung/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicolechung/subscriptions","organizations_url":"https://api.github.com/users/nicolechung/orgs","repos_url":"https://api.github.com/users/nicolechung/repos","events_url":"https://api.github.com/users/nicolechung/events{/privacy}","received_events_url":"https://api.github.com/users/nicolechung/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nicolechung/guides","description":"The source for http://guides.emberjs.com","fork":true,"url":"https://api.github.com/repos/nicolechung/guides","forks_url":"https://api.github.com/repos/nicolechung/guides/forks","keys_url":"https://api.github.com/repos/nicolechung/guides/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nicolechung/guides/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nicolechung/guides/teams","hooks_url":"https://api.github.com/repos/nicolechung/guides/hooks","issue_events_url":"https://api.github.com/repos/nicolechung/guides/issues/events{/number}","events_url":"https://api.github.com/repos/nicolechung/guides/events","assignees_url":"https://api.github.com/repos/nicolechung/guides/assignees{/user}","branches_url":"https://api.github.com/repos/nicolechung/guides/branches{/branch}","tags_url":"https://api.github.com/repos/nicolechung/guides/tags","blobs_url":"https://api.github.com/repos/nicolechung/guides/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nicolechung/guides/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nicolechung/guides/git/refs{/sha}","trees_url":"https://api.github.com/repos/nicolechung/guides/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nicolechung/guides/statuses/{sha}","languages_url":"https://api.github.com/repos/nicolechung/guides/languages","stargazers_url":"https://api.github.com/repos/nicolechung/guides/stargazers","contributors_url":"https://api.github.com/repos/nicolechung/guides/contributors","subscribers_url":"https://api.github.com/repos/nicolechung/guides/subscribers","subscription_url":"https://api.github.com/repos/nicolechung/guides/subscription","commits_url":"https://api.github.com/repos/nicolechung/guides/commits{/sha}","git_commits_url":"https://api.github.com/repos/nicolechung/guides/git/commits{/sha}","comments_url":"https://api.github.com/repos/nicolechung/guides/comments{/number}","issue_comment_url":"https://api.github.com/repos/nicolechung/guides/issues/comments{/number}","contents_url":"https://api.github.com/repos/nicolechung/guides/contents/{+path}","compare_url":"https://api.github.com/repos/nicolechung/guides/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nicolechung/guides/merges","archive_url":"https://api.github.com/repos/nicolechung/guides/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nicolechung/guides/downloads","issues_url":"https://api.github.com/repos/nicolechung/guides/issues{/number}","pulls_url":"https://api.github.com/repos/nicolechung/guides/pulls{/number}","milestones_url":"https://api.github.com/repos/nicolechung/guides/milestones{/number}","notifications_url":"https://api.github.com/repos/nicolechung/guides/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nicolechung/guides/labels{/name}","releases_url":"https://api.github.com/repos/nicolechung/guides/releases{/id}","created_at":"2015-02-25T13:00:44Z","updated_at":"2015-03-16T12:00:50Z","pushed_at":"2015-03-17T22:48:55Z","git_url":"git://github.com/nicolechung/guides.git","ssh_url":"git@github.com:nicolechung/guides.git","clone_url":"https://github.com/nicolechung/guides.git","svn_url":"https://github.com/nicolechung/guides","homepage":null,"size":21946,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"1bc227d6df49674e5e3cb6efb8fc741c51f7c1ea","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":22767401,"name":"guides","full_name":"emberjs/guides","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/guides","description":"The source for http://guides.emberjs.com","fork":false,"url":"https://api.github.com/repos/emberjs/guides","forks_url":"https://api.github.com/repos/emberjs/guides/forks","keys_url":"https://api.github.com/repos/emberjs/guides/keys{/key_id}","collaborators_url":"https://api.github.com/repos/emberjs/guides/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/emberjs/guides/teams","hooks_url":"https://api.github.com/repos/emberjs/guides/hooks","issue_events_url":"https://api.github.com/repos/emberjs/guides/issues/events{/number}","events_url":"https://api.github.com/repos/emberjs/guides/events","assignees_url":"https://api.github.com/repos/emberjs/guides/assignees{/user}","branches_url":"https://api.github.com/repos/emberjs/guides/branches{/branch}","tags_url":"https://api.github.com/repos/emberjs/guides/tags","blobs_url":"https://api.github.com/repos/emberjs/guides/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/emberjs/guides/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/emberjs/guides/git/refs{/sha}","trees_url":"https://api.github.com/repos/emberjs/guides/git/trees{/sha}","statuses_url":"https://api.github.com/repos/emberjs/guides/statuses/{sha}","languages_url":"https://api.github.com/repos/emberjs/guides/languages","stargazers_url":"https://api.github.com/repos/emberjs/guides/stargazers","contributors_url":"https://api.github.com/repos/emberjs/guides/contributors","subscribers_url":"https://api.github.com/repos/emberjs/guides/subscribers","subscription_url":"https://api.github.com/repos/emberjs/guides/subscription","commits_url":"https://api.github.com/repos/emberjs/guides/commits{/sha}","git_commits_url":"https://api.github.com/repos/emberjs/guides/git/commits{/sha}","comments_url":"https://api.github.com/repos/emberjs/guides/comments{/number}","issue_comment_url":"https://api.github.com/repos/emberjs/guides/issues/comments{/number}","contents_url":"https://api.github.com/repos/emberjs/guides/contents/{+path}","compare_url":"https://api.github.com/repos/emberjs/guides/compare/{base}...{head}","merges_url":"https://api.github.com/repos/emberjs/guides/merges","archive_url":"https://api.github.com/repos/emberjs/guides/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/emberjs/guides/downloads","issues_url":"https://api.github.com/repos/emberjs/guides/issues{/number}","pulls_url":"https://api.github.com/repos/emberjs/guides/pulls{/number}","milestones_url":"https://api.github.com/repos/emberjs/guides/milestones{/number}","notifications_url":"https://api.github.com/repos/emberjs/guides/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/emberjs/guides/labels{/name}","releases_url":"https://api.github.com/repos/emberjs/guides/releases{/id}","created_at":"2014-08-08T18:25:02Z","updated_at":"2015-03-18T01:19:05Z","pushed_at":"2015-03-18T01:19:04Z","git_url":"git://github.com/emberjs/guides.git","ssh_url":"git@github.com:emberjs/guides.git","clone_url":"https://github.com/emberjs/guides.git","svn_url":"https://github.com/emberjs/guides","homepage":null,"size":25932,"stargazers_count":15,"watchers_count":15,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":25,"mirror_url":null,"open_issues_count":15,"forks":25,"open_issues":15,"watchers":15,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/emberjs/guides/pulls/25"},"html":{"href":"https://github.com/emberjs/guides/pull/25"},"issue":{"href":"https://api.github.com/repos/emberjs/guides/issues/25"},"comments":{"href":"https://api.github.com/repos/emberjs/guides/issues/25/comments"},"review_comments":{"href":"https://api.github.com/repos/emberjs/guides/pulls/25/comments"},"review_comment":{"href":"https://api.github.com/repos/emberjs/guides/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/emberjs/guides/pulls/25/commits"},"statuses":{"href":"https://api.github.com/repos/emberjs/guides/statuses/6c2dee4023f56d5306e42e8a8141defc3fb1f6ae"}}}}