{"action":"opened","number":189,"pull_request":{"url":"https://api.github.com/repos/marionettejs/marionettejs.com/pulls/189","id":28510259,"html_url":"https://github.com/marionettejs/marionettejs.com/pull/189","diff_url":"https://github.com/marionettejs/marionettejs.com/pull/189.diff","patch_url":"https://github.com/marionettejs/marionettejs.com/pull/189.patch","issue_url":"https://api.github.com/repos/marionettejs/marionettejs.com/issues/189","number":189,"state":"open","locked":false,"title":"Use data driven books template","user":{"login":"peterblazejewicz","id":14539,"avatar_url":"https://avatars.githubusercontent.com/u/14539?v=3","gravatar_id":"","url":"https://api.github.com/users/peterblazejewicz","html_url":"https://github.com/peterblazejewicz","followers_url":"https://api.github.com/users/peterblazejewicz/followers","following_url":"https://api.github.com/users/peterblazejewicz/following{/other_user}","gists_url":"https://api.github.com/users/peterblazejewicz/gists{/gist_id}","starred_url":"https://api.github.com/users/peterblazejewicz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peterblazejewicz/subscriptions","organizations_url":"https://api.github.com/users/peterblazejewicz/orgs","repos_url":"https://api.github.com/users/peterblazejewicz/repos","events_url":"https://api.github.com/users/peterblazejewicz/events{/privacy}","received_events_url":"https://api.github.com/users/peterblazejewicz/received_events","type":"User","site_admin":false},"body":"This PR is a follow up to ticket discussing data driven templates:\r\nhttps://github.com/marionettejs/marionettejs.com/issues/184\r\nand previous - already merged PR:\r\nhttps://github.com/marionettejs/marionettejs.com/pull/185\r\n\r\nThis PR introduces similar changes as in #185 and:\r\n- adds JSON file for books information\r\n- modifies Grunt file to use data during compile\r\n- refactors books template file to use data\r\n\r\nThe changes introduced by PR should have no side effect and does not change rendering context, order or markup.\r\n\r\nThe reasoning behind this PR is similar to #185: simplify future development and maintenance. \r\n\r\n```diff\r\ncommit bc37f111f5aa61cbdf3d9973389075a46b779084\r\nAuthor: Peter Blazejewicz <peter.blazejewicz@gmail.com>\r\nDate:   Sun Feb 1 21:11:28 2015 +0100\r\n\r\n    Use data driven books template\r\n    - add JSON file for books information\r\n    - modify Grunt file to use data during compile\r\n    - refactor books template file to use data\r\n\r\n gruntfile.js             |  1 +\r\n src/data/books.json      | 45 +++++++++++++++++++++++++++++++++++++++++++++\r\n src/sections/_books.jade | 18 +++---------------\r\n 3 files changed, 49 insertions(+), 15 deletions(-)\r\n```\r\n\r\nTested locally and side-by-side with hosted version (peer review)\r\nThanks!","created_at":"2015-02-02T22:49:15Z","updated_at":"2015-02-02T22:49:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f89f230f5dd99c3b07484d82c0b864869349a899","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/marionettejs/marionettejs.com/pulls/189/commits","review_comments_url":"https://api.github.com/repos/marionettejs/marionettejs.com/pulls/189/comments","review_comment_url":"https://api.github.com/repos/marionettejs/marionettejs.com/pulls/comments/{number}","comments_url":"https://api.github.com/repos/marionettejs/marionettejs.com/issues/189/comments","statuses_url":"https://api.github.com/repos/marionettejs/marionettejs.com/statuses/19c6a4819a59102205a52718dfa5bffb21969a21","head":{"label":"peterblazejewicz:feature/data-driven-books","ref":"feature/data-driven-books","sha":"19c6a4819a59102205a52718dfa5bffb21969a21","user":{"login":"peterblazejewicz","id":14539,"avatar_url":"https://avatars.githubusercontent.com/u/14539?v=3","gravatar_id":"","url":"https://api.github.com/users/peterblazejewicz","html_url":"https://github.com/peterblazejewicz","followers_url":"https://api.github.com/users/peterblazejewicz/followers","following_url":"https://api.github.com/users/peterblazejewicz/following{/other_user}","gists_url":"https://api.github.com/users/peterblazejewicz/gists{/gist_id}","starred_url":"https://api.github.com/users/peterblazejewicz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peterblazejewicz/subscriptions","organizations_url":"https://api.github.com/users/peterblazejewicz/orgs","repos_url":"https://api.github.com/users/peterblazejewicz/repos","events_url":"https://api.github.com/users/peterblazejewicz/events{/privacy}","received_events_url":"https://api.github.com/users/peterblazejewicz/received_events","type":"User","site_admin":false},"repo":{"id":29055990,"name":"marionettejs.com","full_name":"peterblazejewicz/marionettejs.com","owner":{"login":"peterblazejewicz","id":14539,"avatar_url":"https://avatars.githubusercontent.com/u/14539?v=3","gravatar_id":"","url":"https://api.github.com/users/peterblazejewicz","html_url":"https://github.com/peterblazejewicz","followers_url":"https://api.github.com/users/peterblazejewicz/followers","following_url":"https://api.github.com/users/peterblazejewicz/following{/other_user}","gists_url":"https://api.github.com/users/peterblazejewicz/gists{/gist_id}","starred_url":"https://api.github.com/users/peterblazejewicz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peterblazejewicz/subscriptions","organizations_url":"https://api.github.com/users/peterblazejewicz/orgs","repos_url":"https://api.github.com/users/peterblazejewicz/repos","events_url":"https://api.github.com/users/peterblazejewicz/events{/privacy}","received_events_url":"https://api.github.com/users/peterblazejewicz/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/peterblazejewicz/marionettejs.com","description":"Source files for the Marionette site","fork":true,"url":"https://api.github.com/repos/peterblazejewicz/marionettejs.com","forks_url":"https://api.github.com/repos/peterblazejewicz/marionettejs.com/forks","keys_url":"https://api.github.com/repos/peterblazejewicz/marionettejs.com/keys{/key_id}","collaborators_url":"https://api.github.com/repos/peterblazejewicz/marionettejs.com/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/peterblazejewicz/marionettejs.com/teams","hooks_url":"https://api.github.com/repos/peterblazejewicz/marionettejs.com/hooks","issue_events_url":"https://api.github.com/repos/peterblazejewicz/marionettejs.com/issues/events{/number}","events_url":"https://api.github.com/repos/peterblazejewicz/marionettejs.com/events","assignees_url":"https://api.github.com/repos/peterblazejewicz/marionettejs.com/assignees{/user}","branches_url":"https://api.github.com/repos/peterblazejewicz/marionettejs.com/branches{/branch}","tags_url":"https://api.github.com/repos/peterblazejewicz/marionettejs.com/tags","blobs_url":"https://api.github.com/repos/peterblazejewicz/marionettejs.com/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/peterblazejewicz/marionettejs.com/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/peterblazejewicz/marionettejs.com/git/refs{/sha}","trees_url":"https://api.github.com/repos/peterblazejewicz/marionettejs.com/git/trees{/sha}","statuses_url":"https://api.github.com/repos/peterblazejewicz/marionettejs.com/statuses/{sha}","languages_url":"https://api.github.com/repos/peterblazejewicz/marionettejs.com/languages","stargazers_url":"https://api.github.com/repos/peterblazejewicz/marionettejs.com/stargazers","contributors_url":"https://api.github.com/repos/peterblazejewicz/marionettejs.com/contributors","subscribers_url":"https://api.github.com/repos/peterblazejewicz/marionettejs.com/subscribers","subscription_url":"https://api.github.com/repos/peterblazejewicz/marionettejs.com/subscription","commits_url":"https://api.github.com/repos/peterblazejewicz/marionettejs.com/commits{/sha}","git_commits_url":"https://api.github.com/repos/peterblazejewicz/marionettejs.com/git/commits{/sha}","comments_url":"https://api.github.com/repos/peterblazejewicz/marionettejs.com/comments{/number}","issue_comment_url":"https://api.github.com/repos/peterblazejewicz/marionettejs.com/issues/comments/{number}","contents_url":"https://api.github.com/repos/peterblazejewicz/marionettejs.com/contents/{+path}","compare_url":"https://api.github.com/repos/peterblazejewicz/marionettejs.com/compare/{base}...{head}","merges_url":"https://api.github.com/repos/peterblazejewicz/marionettejs.com/merges","archive_url":"https://api.github.com/repos/peterblazejewicz/marionettejs.com/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/peterblazejewicz/marionettejs.com/downloads","issues_url":"https://api.github.com/repos/peterblazejewicz/marionettejs.com/issues{/number}","pulls_url":"https://api.github.com/repos/peterblazejewicz/marionettejs.com/pulls{/number}","milestones_url":"https://api.github.com/repos/peterblazejewicz/marionettejs.com/milestones{/number}","notifications_url":"https://api.github.com/repos/peterblazejewicz/marionettejs.com/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/peterblazejewicz/marionettejs.com/labels{/name}","releases_url":"https://api.github.com/repos/peterblazejewicz/marionettejs.com/releases{/id}","created_at":"2015-01-10T12:05:37Z","updated_at":"2015-02-02T21:37:19Z","pushed_at":"2015-02-02T22:48:55Z","git_url":"git://github.com/peterblazejewicz/marionettejs.com.git","ssh_url":"git@github.com:peterblazejewicz/marionettejs.com.git","clone_url":"https://github.com/peterblazejewicz/marionettejs.com.git","svn_url":"https://github.com/peterblazejewicz/marionettejs.com","homepage":"http://marionettejs.com","size":11788,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"marionettejs:master","ref":"master","sha":"ffef05a4f520568ff06b242091a637b8e70ff26c","user":{"login":"marionettejs","id":2273169,"avatar_url":"https://avatars.githubusercontent.com/u/2273169?v=3","gravatar_id":"","url":"https://api.github.com/users/marionettejs","html_url":"https://github.com/marionettejs","followers_url":"https://api.github.com/users/marionettejs/followers","following_url":"https://api.github.com/users/marionettejs/following{/other_user}","gists_url":"https://api.github.com/users/marionettejs/gists{/gist_id}","starred_url":"https://api.github.com/users/marionettejs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marionettejs/subscriptions","organizations_url":"https://api.github.com/users/marionettejs/orgs","repos_url":"https://api.github.com/users/marionettejs/repos","events_url":"https://api.github.com/users/marionettejs/events{/privacy}","received_events_url":"https://api.github.com/users/marionettejs/received_events","type":"Organization","site_admin":false},"repo":{"id":21595155,"name":"marionettejs.com","full_name":"marionettejs/marionettejs.com","owner":{"login":"marionettejs","id":2273169,"avatar_url":"https://avatars.githubusercontent.com/u/2273169?v=3","gravatar_id":"","url":"https://api.github.com/users/marionettejs","html_url":"https://github.com/marionettejs","followers_url":"https://api.github.com/users/marionettejs/followers","following_url":"https://api.github.com/users/marionettejs/following{/other_user}","gists_url":"https://api.github.com/users/marionettejs/gists{/gist_id}","starred_url":"https://api.github.com/users/marionettejs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marionettejs/subscriptions","organizations_url":"https://api.github.com/users/marionettejs/orgs","repos_url":"https://api.github.com/users/marionettejs/repos","events_url":"https://api.github.com/users/marionettejs/events{/privacy}","received_events_url":"https://api.github.com/users/marionettejs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/marionettejs/marionettejs.com","description":"Source files for the Marionette site","fork":false,"url":"https://api.github.com/repos/marionettejs/marionettejs.com","forks_url":"https://api.github.com/repos/marionettejs/marionettejs.com/forks","keys_url":"https://api.github.com/repos/marionettejs/marionettejs.com/keys{/key_id}","collaborators_url":"https://api.github.com/repos/marionettejs/marionettejs.com/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/marionettejs/marionettejs.com/teams","hooks_url":"https://api.github.com/repos/marionettejs/marionettejs.com/hooks","issue_events_url":"https://api.github.com/repos/marionettejs/marionettejs.com/issues/events{/number}","events_url":"https://api.github.com/repos/marionettejs/marionettejs.com/events","assignees_url":"https://api.github.com/repos/marionettejs/marionettejs.com/assignees{/user}","branches_url":"https://api.github.com/repos/marionettejs/marionettejs.com/branches{/branch}","tags_url":"https://api.github.com/repos/marionettejs/marionettejs.com/tags","blobs_url":"https://api.github.com/repos/marionettejs/marionettejs.com/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/marionettejs/marionettejs.com/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/marionettejs/marionettejs.com/git/refs{/sha}","trees_url":"https://api.github.com/repos/marionettejs/marionettejs.com/git/trees{/sha}","statuses_url":"https://api.github.com/repos/marionettejs/marionettejs.com/statuses/{sha}","languages_url":"https://api.github.com/repos/marionettejs/marionettejs.com/languages","stargazers_url":"https://api.github.com/repos/marionettejs/marionettejs.com/stargazers","contributors_url":"https://api.github.com/repos/marionettejs/marionettejs.com/contributors","subscribers_url":"https://api.github.com/repos/marionettejs/marionettejs.com/subscribers","subscription_url":"https://api.github.com/repos/marionettejs/marionettejs.com/subscription","commits_url":"https://api.github.com/repos/marionettejs/marionettejs.com/commits{/sha}","git_commits_url":"https://api.github.com/repos/marionettejs/marionettejs.com/git/commits{/sha}","comments_url":"https://api.github.com/repos/marionettejs/marionettejs.com/comments{/number}","issue_comment_url":"https://api.github.com/repos/marionettejs/marionettejs.com/issues/comments/{number}","contents_url":"https://api.github.com/repos/marionettejs/marionettejs.com/contents/{+path}","compare_url":"https://api.github.com/repos/marionettejs/marionettejs.com/compare/{base}...{head}","merges_url":"https://api.github.com/repos/marionettejs/marionettejs.com/merges","archive_url":"https://api.github.com/repos/marionettejs/marionettejs.com/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/marionettejs/marionettejs.com/downloads","issues_url":"https://api.github.com/repos/marionettejs/marionettejs.com/issues{/number}","pulls_url":"https://api.github.com/repos/marionettejs/marionettejs.com/pulls{/number}","milestones_url":"https://api.github.com/repos/marionettejs/marionettejs.com/milestones{/number}","notifications_url":"https://api.github.com/repos/marionettejs/marionettejs.com/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/marionettejs/marionettejs.com/labels{/name}","releases_url":"https://api.github.com/repos/marionettejs/marionettejs.com/releases{/id}","created_at":"2014-07-08T02:30:12Z","updated_at":"2015-02-02T22:45:06Z","pushed_at":"2015-02-02T22:45:06Z","git_url":"git://github.com/marionettejs/marionettejs.com.git","ssh_url":"git@github.com:marionettejs/marionettejs.com.git","clone_url":"https://github.com/marionettejs/marionettejs.com.git","svn_url":"https://github.com/marionettejs/marionettejs.com","homepage":"http://marionettejs.com","size":13314,"stargazers_count":8,"watchers_count":8,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":12,"mirror_url":null,"open_issues_count":41,"forks":12,"open_issues":41,"watchers":8,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/marionettejs/marionettejs.com/pulls/189"},"html":{"href":"https://github.com/marionettejs/marionettejs.com/pull/189"},"issue":{"href":"https://api.github.com/repos/marionettejs/marionettejs.com/issues/189"},"comments":{"href":"https://api.github.com/repos/marionettejs/marionettejs.com/issues/189/comments"},"review_comments":{"href":"https://api.github.com/repos/marionettejs/marionettejs.com/pulls/189/comments"},"review_comment":{"href":"https://api.github.com/repos/marionettejs/marionettejs.com/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/marionettejs/marionettejs.com/pulls/189/commits"},"statuses":{"href":"https://api.github.com/repos/marionettejs/marionettejs.com/statuses/19c6a4819a59102205a52718dfa5bffb21969a21"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":49,"deletions":15,"changed_files":3}}