{"action":"closed","number":16,"pull_request":{"url":"https://api.github.com/repos/mlenser/roll20-character-sheets/pulls/16","id":35898505,"html_url":"https://github.com/mlenser/roll20-character-sheets/pull/16","diff_url":"https://github.com/mlenser/roll20-character-sheets/pull/16.diff","patch_url":"https://github.com/mlenser/roll20-character-sheets/pull/16.patch","issue_url":"https://api.github.com/repos/mlenser/roll20-character-sheets/issues/16","number":16,"state":"closed","locked":false,"title":"Use gulp-inject to create multiple melee and ranged weapon blocks from templates","user":{"login":"jjsheets","id":1619569,"avatar_url":"https://avatars.githubusercontent.com/u/1619569?v=3","gravatar_id":"","url":"https://api.github.com/users/jjsheets","html_url":"https://github.com/jjsheets","followers_url":"https://api.github.com/users/jjsheets/followers","following_url":"https://api.github.com/users/jjsheets/following{/other_user}","gists_url":"https://api.github.com/users/jjsheets/gists{/gist_id}","starred_url":"https://api.github.com/users/jjsheets/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jjsheets/subscriptions","organizations_url":"https://api.github.com/users/jjsheets/orgs","repos_url":"https://api.github.com/users/jjsheets/repos","events_url":"https://api.github.com/users/jjsheets/events{/privacy}","received_events_url":"https://api.github.com/users/jjsheets/received_events","type":"User","site_admin":false},"body":"Don't forget to npm install gulp-inject (and possibly npm install --save-dev gulp-inject) to make the gulp continue to work. I pulled out the first block of melee and ranged weapons into their own files in the components directory, modified weapons.html and gulpfile.js to automatically duplicate numbered versions of the templates into the final result. I used {{num}} in place of the section number (0 to 6) in the template, and used a simple loop in the gulpfile to duplicate the templates.","created_at":"2015-05-21T04:12:32Z","updated_at":"2015-05-21T08:51:26Z","closed_at":"2015-05-21T08:51:26Z","merged_at":"2015-05-21T08:51:26Z","merge_commit_sha":"f5930afa20d95b46830ef0d8b21967a112fecda1","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mlenser/roll20-character-sheets/pulls/16/commits","review_comments_url":"https://api.github.com/repos/mlenser/roll20-character-sheets/pulls/16/comments","review_comment_url":"https://api.github.com/repos/mlenser/roll20-character-sheets/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mlenser/roll20-character-sheets/issues/16/comments","statuses_url":"https://api.github.com/repos/mlenser/roll20-character-sheets/statuses/c4fda7ffa06cd62174fd5b5a91ebf60ea48dbab7","head":{"label":"jjsheets:repeating-weapon-blocks","ref":"repeating-weapon-blocks","sha":"c4fda7ffa06cd62174fd5b5a91ebf60ea48dbab7","user":{"login":"jjsheets","id":1619569,"avatar_url":"https://avatars.githubusercontent.com/u/1619569?v=3","gravatar_id":"","url":"https://api.github.com/users/jjsheets","html_url":"https://github.com/jjsheets","followers_url":"https://api.github.com/users/jjsheets/followers","following_url":"https://api.github.com/users/jjsheets/following{/other_user}","gists_url":"https://api.github.com/users/jjsheets/gists{/gist_id}","starred_url":"https://api.github.com/users/jjsheets/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jjsheets/subscriptions","organizations_url":"https://api.github.com/users/jjsheets/orgs","repos_url":"https://api.github.com/users/jjsheets/repos","events_url":"https://api.github.com/users/jjsheets/events{/privacy}","received_events_url":"https://api.github.com/users/jjsheets/received_events","type":"User","site_admin":false},"repo":{"id":35989699,"name":"roll20-character-sheets","full_name":"jjsheets/roll20-character-sheets","owner":{"login":"jjsheets","id":1619569,"avatar_url":"https://avatars.githubusercontent.com/u/1619569?v=3","gravatar_id":"","url":"https://api.github.com/users/jjsheets","html_url":"https://github.com/jjsheets","followers_url":"https://api.github.com/users/jjsheets/followers","following_url":"https://api.github.com/users/jjsheets/following{/other_user}","gists_url":"https://api.github.com/users/jjsheets/gists{/gist_id}","starred_url":"https://api.github.com/users/jjsheets/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jjsheets/subscriptions","organizations_url":"https://api.github.com/users/jjsheets/orgs","repos_url":"https://api.github.com/users/jjsheets/repos","events_url":"https://api.github.com/users/jjsheets/events{/privacy}","received_events_url":"https://api.github.com/users/jjsheets/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jjsheets/roll20-character-sheets","description":"Character sheet templates created by the community for use in Roll20.","fork":true,"url":"https://api.github.com/repos/jjsheets/roll20-character-sheets","forks_url":"https://api.github.com/repos/jjsheets/roll20-character-sheets/forks","keys_url":"https://api.github.com/repos/jjsheets/roll20-character-sheets/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jjsheets/roll20-character-sheets/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jjsheets/roll20-character-sheets/teams","hooks_url":"https://api.github.com/repos/jjsheets/roll20-character-sheets/hooks","issue_events_url":"https://api.github.com/repos/jjsheets/roll20-character-sheets/issues/events{/number}","events_url":"https://api.github.com/repos/jjsheets/roll20-character-sheets/events","assignees_url":"https://api.github.com/repos/jjsheets/roll20-character-sheets/assignees{/user}","branches_url":"https://api.github.com/repos/jjsheets/roll20-character-sheets/branches{/branch}","tags_url":"https://api.github.com/repos/jjsheets/roll20-character-sheets/tags","blobs_url":"https://api.github.com/repos/jjsheets/roll20-character-sheets/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jjsheets/roll20-character-sheets/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jjsheets/roll20-character-sheets/git/refs{/sha}","trees_url":"https://api.github.com/repos/jjsheets/roll20-character-sheets/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jjsheets/roll20-character-sheets/statuses/{sha}","languages_url":"https://api.github.com/repos/jjsheets/roll20-character-sheets/languages","stargazers_url":"https://api.github.com/repos/jjsheets/roll20-character-sheets/stargazers","contributors_url":"https://api.github.com/repos/jjsheets/roll20-character-sheets/contributors","subscribers_url":"https://api.github.com/repos/jjsheets/roll20-character-sheets/subscribers","subscription_url":"https://api.github.com/repos/jjsheets/roll20-character-sheets/subscription","commits_url":"https://api.github.com/repos/jjsheets/roll20-character-sheets/commits{/sha}","git_commits_url":"https://api.github.com/repos/jjsheets/roll20-character-sheets/git/commits{/sha}","comments_url":"https://api.github.com/repos/jjsheets/roll20-character-sheets/comments{/number}","issue_comment_url":"https://api.github.com/repos/jjsheets/roll20-character-sheets/issues/comments{/number}","contents_url":"https://api.github.com/repos/jjsheets/roll20-character-sheets/contents/{+path}","compare_url":"https://api.github.com/repos/jjsheets/roll20-character-sheets/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jjsheets/roll20-character-sheets/merges","archive_url":"https://api.github.com/repos/jjsheets/roll20-character-sheets/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jjsheets/roll20-character-sheets/downloads","issues_url":"https://api.github.com/repos/jjsheets/roll20-character-sheets/issues{/number}","pulls_url":"https://api.github.com/repos/jjsheets/roll20-character-sheets/pulls{/number}","milestones_url":"https://api.github.com/repos/jjsheets/roll20-character-sheets/milestones{/number}","notifications_url":"https://api.github.com/repos/jjsheets/roll20-character-sheets/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jjsheets/roll20-character-sheets/labels{/name}","releases_url":"https://api.github.com/repos/jjsheets/roll20-character-sheets/releases{/id}","created_at":"2015-05-21T03:51:54Z","updated_at":"2015-05-21T03:51:57Z","pushed_at":"2015-05-21T04:41:17Z","git_url":"git://github.com/jjsheets/roll20-character-sheets.git","ssh_url":"git@github.com:jjsheets/roll20-character-sheets.git","clone_url":"https://github.com/jjsheets/roll20-character-sheets.git","svn_url":"https://github.com/jjsheets/roll20-character-sheets","homepage":null,"size":59608,"stargazers_count":0,"watchers_count":0,"language":"HTML","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":"mlenser:master","ref":"master","sha":"e1d985952bcd015c96a5aabdff279bed194edb92","user":{"login":"mlenser","id":235857,"avatar_url":"https://avatars.githubusercontent.com/u/235857?v=3","gravatar_id":"","url":"https://api.github.com/users/mlenser","html_url":"https://github.com/mlenser","followers_url":"https://api.github.com/users/mlenser/followers","following_url":"https://api.github.com/users/mlenser/following{/other_user}","gists_url":"https://api.github.com/users/mlenser/gists{/gist_id}","starred_url":"https://api.github.com/users/mlenser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mlenser/subscriptions","organizations_url":"https://api.github.com/users/mlenser/orgs","repos_url":"https://api.github.com/users/mlenser/repos","events_url":"https://api.github.com/users/mlenser/events{/privacy}","received_events_url":"https://api.github.com/users/mlenser/received_events","type":"User","site_admin":false},"repo":{"id":32550106,"name":"roll20-character-sheets","full_name":"mlenser/roll20-character-sheets","owner":{"login":"mlenser","id":235857,"avatar_url":"https://avatars.githubusercontent.com/u/235857?v=3","gravatar_id":"","url":"https://api.github.com/users/mlenser","html_url":"https://github.com/mlenser","followers_url":"https://api.github.com/users/mlenser/followers","following_url":"https://api.github.com/users/mlenser/following{/other_user}","gists_url":"https://api.github.com/users/mlenser/gists{/gist_id}","starred_url":"https://api.github.com/users/mlenser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mlenser/subscriptions","organizations_url":"https://api.github.com/users/mlenser/orgs","repos_url":"https://api.github.com/users/mlenser/repos","events_url":"https://api.github.com/users/mlenser/events{/privacy}","received_events_url":"https://api.github.com/users/mlenser/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mlenser/roll20-character-sheets","description":"Character sheet templates created by the community for use in Roll20.","fork":true,"url":"https://api.github.com/repos/mlenser/roll20-character-sheets","forks_url":"https://api.github.com/repos/mlenser/roll20-character-sheets/forks","keys_url":"https://api.github.com/repos/mlenser/roll20-character-sheets/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mlenser/roll20-character-sheets/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mlenser/roll20-character-sheets/teams","hooks_url":"https://api.github.com/repos/mlenser/roll20-character-sheets/hooks","issue_events_url":"https://api.github.com/repos/mlenser/roll20-character-sheets/issues/events{/number}","events_url":"https://api.github.com/repos/mlenser/roll20-character-sheets/events","assignees_url":"https://api.github.com/repos/mlenser/roll20-character-sheets/assignees{/user}","branches_url":"https://api.github.com/repos/mlenser/roll20-character-sheets/branches{/branch}","tags_url":"https://api.github.com/repos/mlenser/roll20-character-sheets/tags","blobs_url":"https://api.github.com/repos/mlenser/roll20-character-sheets/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mlenser/roll20-character-sheets/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mlenser/roll20-character-sheets/git/refs{/sha}","trees_url":"https://api.github.com/repos/mlenser/roll20-character-sheets/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mlenser/roll20-character-sheets/statuses/{sha}","languages_url":"https://api.github.com/repos/mlenser/roll20-character-sheets/languages","stargazers_url":"https://api.github.com/repos/mlenser/roll20-character-sheets/stargazers","contributors_url":"https://api.github.com/repos/mlenser/roll20-character-sheets/contributors","subscribers_url":"https://api.github.com/repos/mlenser/roll20-character-sheets/subscribers","subscription_url":"https://api.github.com/repos/mlenser/roll20-character-sheets/subscription","commits_url":"https://api.github.com/repos/mlenser/roll20-character-sheets/commits{/sha}","git_commits_url":"https://api.github.com/repos/mlenser/roll20-character-sheets/git/commits{/sha}","comments_url":"https://api.github.com/repos/mlenser/roll20-character-sheets/comments{/number}","issue_comment_url":"https://api.github.com/repos/mlenser/roll20-character-sheets/issues/comments{/number}","contents_url":"https://api.github.com/repos/mlenser/roll20-character-sheets/contents/{+path}","compare_url":"https://api.github.com/repos/mlenser/roll20-character-sheets/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mlenser/roll20-character-sheets/merges","archive_url":"https://api.github.com/repos/mlenser/roll20-character-sheets/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mlenser/roll20-character-sheets/downloads","issues_url":"https://api.github.com/repos/mlenser/roll20-character-sheets/issues{/number}","pulls_url":"https://api.github.com/repos/mlenser/roll20-character-sheets/pulls{/number}","milestones_url":"https://api.github.com/repos/mlenser/roll20-character-sheets/milestones{/number}","notifications_url":"https://api.github.com/repos/mlenser/roll20-character-sheets/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mlenser/roll20-character-sheets/labels{/name}","releases_url":"https://api.github.com/repos/mlenser/roll20-character-sheets/releases{/id}","created_at":"2015-03-19T22:42:09Z","updated_at":"2015-05-08T07:45:03Z","pushed_at":"2015-05-21T08:51:26Z","git_url":"git://github.com/mlenser/roll20-character-sheets.git","ssh_url":"git@github.com:mlenser/roll20-character-sheets.git","clone_url":"https://github.com/mlenser/roll20-character-sheets.git","svn_url":"https://github.com/mlenser/roll20-character-sheets","homepage":null,"size":59608,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":1,"forks":4,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mlenser/roll20-character-sheets/pulls/16"},"html":{"href":"https://github.com/mlenser/roll20-character-sheets/pull/16"},"issue":{"href":"https://api.github.com/repos/mlenser/roll20-character-sheets/issues/16"},"comments":{"href":"https://api.github.com/repos/mlenser/roll20-character-sheets/issues/16/comments"},"review_comments":{"href":"https://api.github.com/repos/mlenser/roll20-character-sheets/pulls/16/comments"},"review_comment":{"href":"https://api.github.com/repos/mlenser/roll20-character-sheets/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mlenser/roll20-character-sheets/pulls/16/commits"},"statuses":{"href":"https://api.github.com/repos/mlenser/roll20-character-sheets/statuses/c4fda7ffa06cd62174fd5b5a91ebf60ea48dbab7"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"mlenser","id":235857,"avatar_url":"https://avatars.githubusercontent.com/u/235857?v=3","gravatar_id":"","url":"https://api.github.com/users/mlenser","html_url":"https://github.com/mlenser","followers_url":"https://api.github.com/users/mlenser/followers","following_url":"https://api.github.com/users/mlenser/following{/other_user}","gists_url":"https://api.github.com/users/mlenser/gists{/gist_id}","starred_url":"https://api.github.com/users/mlenser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mlenser/subscriptions","organizations_url":"https://api.github.com/users/mlenser/orgs","repos_url":"https://api.github.com/users/mlenser/repos","events_url":"https://api.github.com/users/mlenser/events{/privacy}","received_events_url":"https://api.github.com/users/mlenser/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"commits":1,"additions":279,"deletions":1742,"changed_files":4}}