{"action":"created","comment":{"url":"https://api.github.com/repos/cloudfour/core-hbs-helpers/pulls/comments/64503468","id":64503468,"diff_hunk":"@@ -0,0 +1,88 @@\n+'use strict';\n+\n+var R = require('ramda');\n+var ltx = require('ltx');\n+var Handlebars = require('handlebars');\n+var fs = require('fs');\n+var path = require('path');\n+\n+function createSvgHelper (settings) {\n+  var cache = {};","path":"lib/svg.js","position":10,"original_position":10,"commit_id":"d0c789267078d152f94d048d2adc013f7e81683a","original_commit_id":"d0c789267078d152f94d048d2adc013f7e81683a","user":{"login":"erikjung","id":61204,"avatar_url":"https://avatars.githubusercontent.com/u/61204?v=3","gravatar_id":"","url":"https://api.github.com/users/erikjung","html_url":"https://github.com/erikjung","followers_url":"https://api.github.com/users/erikjung/followers","following_url":"https://api.github.com/users/erikjung/following{/other_user}","gists_url":"https://api.github.com/users/erikjung/gists{/gist_id}","starred_url":"https://api.github.com/users/erikjung/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erikjung/subscriptions","organizations_url":"https://api.github.com/users/erikjung/orgs","repos_url":"https://api.github.com/users/erikjung/repos","events_url":"https://api.github.com/users/erikjung/events{/privacy}","received_events_url":"https://api.github.com/users/erikjung/received_events","type":"User","site_admin":false},"body":"I wonder if http://ramdajs.com/docs/#memoize could be applied here.","created_at":"2016-05-25T01:39:10Z","updated_at":"2016-05-25T01:39:10Z","html_url":"https://github.com/cloudfour/core-hbs-helpers/pull/39#discussion_r64503468","pull_request_url":"https://api.github.com/repos/cloudfour/core-hbs-helpers/pulls/39","_links":{"self":{"href":"https://api.github.com/repos/cloudfour/core-hbs-helpers/pulls/comments/64503468"},"html":{"href":"https://github.com/cloudfour/core-hbs-helpers/pull/39#discussion_r64503468"},"pull_request":{"href":"https://api.github.com/repos/cloudfour/core-hbs-helpers/pulls/39"}}},"pull_request":{"url":"https://api.github.com/repos/cloudfour/core-hbs-helpers/pulls/39","id":71315422,"html_url":"https://github.com/cloudfour/core-hbs-helpers/pull/39","diff_url":"https://github.com/cloudfour/core-hbs-helpers/pull/39.diff","patch_url":"https://github.com/cloudfour/core-hbs-helpers/pull/39.patch","issue_url":"https://api.github.com/repos/cloudfour/core-hbs-helpers/issues/39","number":39,"state":"open","locked":false,"title":"Add inline SVG helper","user":{"login":"tylersticka","id":69633,"avatar_url":"https://avatars.githubusercontent.com/u/69633?v=3","gravatar_id":"","url":"https://api.github.com/users/tylersticka","html_url":"https://github.com/tylersticka","followers_url":"https://api.github.com/users/tylersticka/followers","following_url":"https://api.github.com/users/tylersticka/following{/other_user}","gists_url":"https://api.github.com/users/tylersticka/gists{/gist_id}","starred_url":"https://api.github.com/users/tylersticka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tylersticka/subscriptions","organizations_url":"https://api.github.com/users/tylersticka/orgs","repos_url":"https://api.github.com/users/tylersticka/repos","events_url":"https://api.github.com/users/tylersticka/events{/privacy}","received_events_url":"https://api.github.com/users/tylersticka/received_events","type":"User","site_admin":false},"body":"This adds an `{{svg \"path/to/file\"}}` helper for easily including SVG icons and other goodies inline.\r\n\r\nDifferences from similar helpers:\r\n\r\n- Although it will only include the `<svg>` (no proceeding definition info or anything like that) and will strip away `xmlns` attributes, it does not do any other optimization or modification of the SVG files.\r\n- It does not cache its output to the file system at any point.\r\n- It searches for files relative to the current process, with the option of setting a `basePath` prior to registering the helper to make things even more convenient.\r\n\r\nSee comments in source for more info.\r\n\r\n---\r\n\r\n@erikjung @mrgerardorodriguez @nicolemors ","created_at":"2016-05-25T00:46:46Z","updated_at":"2016-05-25T01:39:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4cba1ff9810b870d9ff44f3a8badb18c3ebc32a1","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/cloudfour/core-hbs-helpers/pulls/39/commits","review_comments_url":"https://api.github.com/repos/cloudfour/core-hbs-helpers/pulls/39/comments","review_comment_url":"https://api.github.com/repos/cloudfour/core-hbs-helpers/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cloudfour/core-hbs-helpers/issues/39/comments","statuses_url":"https://api.github.com/repos/cloudfour/core-hbs-helpers/statuses/d0c789267078d152f94d048d2adc013f7e81683a","head":{"label":"cloudfour:feat-svg","ref":"feat-svg","sha":"d0c789267078d152f94d048d2adc013f7e81683a","user":{"login":"cloudfour","id":1273956,"avatar_url":"https://avatars.githubusercontent.com/u/1273956?v=3","gravatar_id":"","url":"https://api.github.com/users/cloudfour","html_url":"https://github.com/cloudfour","followers_url":"https://api.github.com/users/cloudfour/followers","following_url":"https://api.github.com/users/cloudfour/following{/other_user}","gists_url":"https://api.github.com/users/cloudfour/gists{/gist_id}","starred_url":"https://api.github.com/users/cloudfour/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cloudfour/subscriptions","organizations_url":"https://api.github.com/users/cloudfour/orgs","repos_url":"https://api.github.com/users/cloudfour/repos","events_url":"https://api.github.com/users/cloudfour/events{/privacy}","received_events_url":"https://api.github.com/users/cloudfour/received_events","type":"Organization","site_admin":false},"repo":{"id":44626637,"name":"core-hbs-helpers","full_name":"cloudfour/core-hbs-helpers","owner":{"login":"cloudfour","id":1273956,"avatar_url":"https://avatars.githubusercontent.com/u/1273956?v=3","gravatar_id":"","url":"https://api.github.com/users/cloudfour","html_url":"https://github.com/cloudfour","followers_url":"https://api.github.com/users/cloudfour/followers","following_url":"https://api.github.com/users/cloudfour/following{/other_user}","gists_url":"https://api.github.com/users/cloudfour/gists{/gist_id}","starred_url":"https://api.github.com/users/cloudfour/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cloudfour/subscriptions","organizations_url":"https://api.github.com/users/cloudfour/orgs","repos_url":"https://api.github.com/users/cloudfour/repos","events_url":"https://api.github.com/users/cloudfour/events{/privacy}","received_events_url":"https://api.github.com/users/cloudfour/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cloudfour/core-hbs-helpers","description":"Handlebars helpers that we usually need","fork":false,"url":"https://api.github.com/repos/cloudfour/core-hbs-helpers","forks_url":"https://api.github.com/repos/cloudfour/core-hbs-helpers/forks","keys_url":"https://api.github.com/repos/cloudfour/core-hbs-helpers/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cloudfour/core-hbs-helpers/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cloudfour/core-hbs-helpers/teams","hooks_url":"https://api.github.com/repos/cloudfour/core-hbs-helpers/hooks","issue_events_url":"https://api.github.com/repos/cloudfour/core-hbs-helpers/issues/events{/number}","events_url":"https://api.github.com/repos/cloudfour/core-hbs-helpers/events","assignees_url":"https://api.github.com/repos/cloudfour/core-hbs-helpers/assignees{/user}","branches_url":"https://api.github.com/repos/cloudfour/core-hbs-helpers/branches{/branch}","tags_url":"https://api.github.com/repos/cloudfour/core-hbs-helpers/tags","blobs_url":"https://api.github.com/repos/cloudfour/core-hbs-helpers/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cloudfour/core-hbs-helpers/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cloudfour/core-hbs-helpers/git/refs{/sha}","trees_url":"https://api.github.com/repos/cloudfour/core-hbs-helpers/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cloudfour/core-hbs-helpers/statuses/{sha}","languages_url":"https://api.github.com/repos/cloudfour/core-hbs-helpers/languages","stargazers_url":"https://api.github.com/repos/cloudfour/core-hbs-helpers/stargazers","contributors_url":"https://api.github.com/repos/cloudfour/core-hbs-helpers/contributors","subscribers_url":"https://api.github.com/repos/cloudfour/core-hbs-helpers/subscribers","subscription_url":"https://api.github.com/repos/cloudfour/core-hbs-helpers/subscription","commits_url":"https://api.github.com/repos/cloudfour/core-hbs-helpers/commits{/sha}","git_commits_url":"https://api.github.com/repos/cloudfour/core-hbs-helpers/git/commits{/sha}","comments_url":"https://api.github.com/repos/cloudfour/core-hbs-helpers/comments{/number}","issue_comment_url":"https://api.github.com/repos/cloudfour/core-hbs-helpers/issues/comments{/number}","contents_url":"https://api.github.com/repos/cloudfour/core-hbs-helpers/contents/{+path}","compare_url":"https://api.github.com/repos/cloudfour/core-hbs-helpers/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cloudfour/core-hbs-helpers/merges","archive_url":"https://api.github.com/repos/cloudfour/core-hbs-helpers/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cloudfour/core-hbs-helpers/downloads","issues_url":"https://api.github.com/repos/cloudfour/core-hbs-helpers/issues{/number}","pulls_url":"https://api.github.com/repos/cloudfour/core-hbs-helpers/pulls{/number}","milestones_url":"https://api.github.com/repos/cloudfour/core-hbs-helpers/milestones{/number}","notifications_url":"https://api.github.com/repos/cloudfour/core-hbs-helpers/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cloudfour/core-hbs-helpers/labels{/name}","releases_url":"https://api.github.com/repos/cloudfour/core-hbs-helpers/releases{/id}","deployments_url":"https://api.github.com/repos/cloudfour/core-hbs-helpers/deployments","created_at":"2015-10-20T18:29:07Z","updated_at":"2016-04-21T20:01:54Z","pushed_at":"2016-05-25T00:46:46Z","git_url":"git://github.com/cloudfour/core-hbs-helpers.git","ssh_url":"git@github.com:cloudfour/core-hbs-helpers.git","clone_url":"https://github.com/cloudfour/core-hbs-helpers.git","svn_url":"https://github.com/cloudfour/core-hbs-helpers","homepage":"","size":58,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":7,"forks":0,"open_issues":7,"watchers":0,"default_branch":"master"}},"base":{"label":"cloudfour:master","ref":"master","sha":"3339361bf3b1a0add19317d5c00a986ff766ef1d","user":{"login":"cloudfour","id":1273956,"avatar_url":"https://avatars.githubusercontent.com/u/1273956?v=3","gravatar_id":"","url":"https://api.github.com/users/cloudfour","html_url":"https://github.com/cloudfour","followers_url":"https://api.github.com/users/cloudfour/followers","following_url":"https://api.github.com/users/cloudfour/following{/other_user}","gists_url":"https://api.github.com/users/cloudfour/gists{/gist_id}","starred_url":"https://api.github.com/users/cloudfour/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cloudfour/subscriptions","organizations_url":"https://api.github.com/users/cloudfour/orgs","repos_url":"https://api.github.com/users/cloudfour/repos","events_url":"https://api.github.com/users/cloudfour/events{/privacy}","received_events_url":"https://api.github.com/users/cloudfour/received_events","type":"Organization","site_admin":false},"repo":{"id":44626637,"name":"core-hbs-helpers","full_name":"cloudfour/core-hbs-helpers","owner":{"login":"cloudfour","id":1273956,"avatar_url":"https://avatars.githubusercontent.com/u/1273956?v=3","gravatar_id":"","url":"https://api.github.com/users/cloudfour","html_url":"https://github.com/cloudfour","followers_url":"https://api.github.com/users/cloudfour/followers","following_url":"https://api.github.com/users/cloudfour/following{/other_user}","gists_url":"https://api.github.com/users/cloudfour/gists{/gist_id}","starred_url":"https://api.github.com/users/cloudfour/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cloudfour/subscriptions","organizations_url":"https://api.github.com/users/cloudfour/orgs","repos_url":"https://api.github.com/users/cloudfour/repos","events_url":"https://api.github.com/users/cloudfour/events{/privacy}","received_events_url":"https://api.github.com/users/cloudfour/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cloudfour/core-hbs-helpers","description":"Handlebars helpers that we usually need","fork":false,"url":"https://api.github.com/repos/cloudfour/core-hbs-helpers","forks_url":"https://api.github.com/repos/cloudfour/core-hbs-helpers/forks","keys_url":"https://api.github.com/repos/cloudfour/core-hbs-helpers/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cloudfour/core-hbs-helpers/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cloudfour/core-hbs-helpers/teams","hooks_url":"https://api.github.com/repos/cloudfour/core-hbs-helpers/hooks","issue_events_url":"https://api.github.com/repos/cloudfour/core-hbs-helpers/issues/events{/number}","events_url":"https://api.github.com/repos/cloudfour/core-hbs-helpers/events","assignees_url":"https://api.github.com/repos/cloudfour/core-hbs-helpers/assignees{/user}","branches_url":"https://api.github.com/repos/cloudfour/core-hbs-helpers/branches{/branch}","tags_url":"https://api.github.com/repos/cloudfour/core-hbs-helpers/tags","blobs_url":"https://api.github.com/repos/cloudfour/core-hbs-helpers/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cloudfour/core-hbs-helpers/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cloudfour/core-hbs-helpers/git/refs{/sha}","trees_url":"https://api.github.com/repos/cloudfour/core-hbs-helpers/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cloudfour/core-hbs-helpers/statuses/{sha}","languages_url":"https://api.github.com/repos/cloudfour/core-hbs-helpers/languages","stargazers_url":"https://api.github.com/repos/cloudfour/core-hbs-helpers/stargazers","contributors_url":"https://api.github.com/repos/cloudfour/core-hbs-helpers/contributors","subscribers_url":"https://api.github.com/repos/cloudfour/core-hbs-helpers/subscribers","subscription_url":"https://api.github.com/repos/cloudfour/core-hbs-helpers/subscription","commits_url":"https://api.github.com/repos/cloudfour/core-hbs-helpers/commits{/sha}","git_commits_url":"https://api.github.com/repos/cloudfour/core-hbs-helpers/git/commits{/sha}","comments_url":"https://api.github.com/repos/cloudfour/core-hbs-helpers/comments{/number}","issue_comment_url":"https://api.github.com/repos/cloudfour/core-hbs-helpers/issues/comments{/number}","contents_url":"https://api.github.com/repos/cloudfour/core-hbs-helpers/contents/{+path}","compare_url":"https://api.github.com/repos/cloudfour/core-hbs-helpers/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cloudfour/core-hbs-helpers/merges","archive_url":"https://api.github.com/repos/cloudfour/core-hbs-helpers/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cloudfour/core-hbs-helpers/downloads","issues_url":"https://api.github.com/repos/cloudfour/core-hbs-helpers/issues{/number}","pulls_url":"https://api.github.com/repos/cloudfour/core-hbs-helpers/pulls{/number}","milestones_url":"https://api.github.com/repos/cloudfour/core-hbs-helpers/milestones{/number}","notifications_url":"https://api.github.com/repos/cloudfour/core-hbs-helpers/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cloudfour/core-hbs-helpers/labels{/name}","releases_url":"https://api.github.com/repos/cloudfour/core-hbs-helpers/releases{/id}","deployments_url":"https://api.github.com/repos/cloudfour/core-hbs-helpers/deployments","created_at":"2015-10-20T18:29:07Z","updated_at":"2016-04-21T20:01:54Z","pushed_at":"2016-05-25T00:46:46Z","git_url":"git://github.com/cloudfour/core-hbs-helpers.git","ssh_url":"git@github.com:cloudfour/core-hbs-helpers.git","clone_url":"https://github.com/cloudfour/core-hbs-helpers.git","svn_url":"https://github.com/cloudfour/core-hbs-helpers","homepage":"","size":58,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":7,"forks":0,"open_issues":7,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cloudfour/core-hbs-helpers/pulls/39"},"html":{"href":"https://github.com/cloudfour/core-hbs-helpers/pull/39"},"issue":{"href":"https://api.github.com/repos/cloudfour/core-hbs-helpers/issues/39"},"comments":{"href":"https://api.github.com/repos/cloudfour/core-hbs-helpers/issues/39/comments"},"review_comments":{"href":"https://api.github.com/repos/cloudfour/core-hbs-helpers/pulls/39/comments"},"review_comment":{"href":"https://api.github.com/repos/cloudfour/core-hbs-helpers/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cloudfour/core-hbs-helpers/pulls/39/commits"},"statuses":{"href":"https://api.github.com/repos/cloudfour/core-hbs-helpers/statuses/d0c789267078d152f94d048d2adc013f7e81683a"}}}}
{"actor":{"display_login":"erikjung"}}