{"action":"created","comment":{"url":"https://api.github.com/repos/ysbaddaden/artanis/pulls/comments/54294110","id":54294110,"diff_hunk":"@@ -10,18 +10,18 @@ module Artanis\n     macro render(name, engine, layout = \"layout\")\n       {% if layout %}\n         render_{{ layout.id }}_{{ engine.id }} do\n-          render_{{ name.id }}_{{ engine.id }}\n+          render_{{ name.gsub(/\\//, \"__SLASH__\").id }}_{{ engine.id }}\n         end\n       {% else %}\n-        render_{{ name.id }}_{{ engine.id }}\n+        render_{{ name.gsub(/\\//, \"__SLASH__\").id }}_{{ engine.id }}\n       {% end %}\n     end\n \n     macro views_path(path)\n       {%\n-        views = `cd #{ path } 2>/dev/null && ls *.ecr || echo -n \"\"`\n+        views = `cd #{ path } 2>/dev/null && find . -name \"*.ecr\" -type f | cut -c 3- || true`","path":"src/render.cr","position":16,"original_position":16,"commit_id":"f9948bab0d33bed7360ca7cc7ac6fcad0cd6446f","original_commit_id":"f9948bab0d33bed7360ca7cc7ac6fcad0cd6446f","user":{"login":"ysbaddaden","id":47380,"avatar_url":"https://avatars.githubusercontent.com/u/47380?v=3","gravatar_id":"","url":"https://api.github.com/users/ysbaddaden","html_url":"https://github.com/ysbaddaden","followers_url":"https://api.github.com/users/ysbaddaden/followers","following_url":"https://api.github.com/users/ysbaddaden/following{/other_user}","gists_url":"https://api.github.com/users/ysbaddaden/gists{/gist_id}","starred_url":"https://api.github.com/users/ysbaddaden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ysbaddaden/subscriptions","organizations_url":"https://api.github.com/users/ysbaddaden/orgs","repos_url":"https://api.github.com/users/ysbaddaden/repos","events_url":"https://api.github.com/users/ysbaddaden/events{/privacy}","received_events_url":"https://api.github.com/users/ysbaddaden/received_events","type":"User","site_admin":false},"body":"Let's avoid the shell command and use Crystal instead. We're already abusing the `run` command too much :)","created_at":"2016-02-26T20:00:49Z","updated_at":"2016-02-26T20:00:49Z","html_url":"https://github.com/ysbaddaden/artanis/pull/5#discussion_r54294110","pull_request_url":"https://api.github.com/repos/ysbaddaden/artanis/pulls/5","_links":{"self":{"href":"https://api.github.com/repos/ysbaddaden/artanis/pulls/comments/54294110"},"html":{"href":"https://github.com/ysbaddaden/artanis/pull/5#discussion_r54294110"},"pull_request":{"href":"https://api.github.com/repos/ysbaddaden/artanis/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/ysbaddaden/artanis/pulls/5","id":60872575,"html_url":"https://github.com/ysbaddaden/artanis/pull/5","diff_url":"https://github.com/ysbaddaden/artanis/pull/5.diff","patch_url":"https://github.com/ysbaddaden/artanis/pull/5.patch","issue_url":"https://api.github.com/repos/ysbaddaden/artanis/issues/5","number":5,"state":"open","locked":false,"title":"Fix views_path macro, call macro, and add support for nested view folders","user":{"login":"trapped","id":4138706,"avatar_url":"https://avatars.githubusercontent.com/u/4138706?v=3","gravatar_id":"","url":"https://api.github.com/users/trapped","html_url":"https://github.com/trapped","followers_url":"https://api.github.com/users/trapped/followers","following_url":"https://api.github.com/users/trapped/following{/other_user}","gists_url":"https://api.github.com/users/trapped/gists{/gist_id}","starred_url":"https://api.github.com/users/trapped/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trapped/subscriptions","organizations_url":"https://api.github.com/users/trapped/orgs","repos_url":"https://api.github.com/users/trapped/repos","events_url":"https://api.github.com/users/trapped/events{/privacy}","received_events_url":"https://api.github.com/users/trapped/received_events","type":"User","site_admin":false},"body":"Fixes ysbaddaden/artanis#3 and ysbaddaden/artanis#4.","created_at":"2016-02-26T17:08:35Z","updated_at":"2016-02-26T20:00:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":"44dd817b2336deb1ddd9d5bf45b3a6aaff74c0f2","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ysbaddaden/artanis/pulls/5/commits","review_comments_url":"https://api.github.com/repos/ysbaddaden/artanis/pulls/5/comments","review_comment_url":"https://api.github.com/repos/ysbaddaden/artanis/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ysbaddaden/artanis/issues/5/comments","statuses_url":"https://api.github.com/repos/ysbaddaden/artanis/statuses/f9948bab0d33bed7360ca7cc7ac6fcad0cd6446f","head":{"label":"trapped:master","ref":"master","sha":"f9948bab0d33bed7360ca7cc7ac6fcad0cd6446f","user":{"login":"trapped","id":4138706,"avatar_url":"https://avatars.githubusercontent.com/u/4138706?v=3","gravatar_id":"","url":"https://api.github.com/users/trapped","html_url":"https://github.com/trapped","followers_url":"https://api.github.com/users/trapped/followers","following_url":"https://api.github.com/users/trapped/following{/other_user}","gists_url":"https://api.github.com/users/trapped/gists{/gist_id}","starred_url":"https://api.github.com/users/trapped/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trapped/subscriptions","organizations_url":"https://api.github.com/users/trapped/orgs","repos_url":"https://api.github.com/users/trapped/repos","events_url":"https://api.github.com/users/trapped/events{/privacy}","received_events_url":"https://api.github.com/users/trapped/received_events","type":"User","site_admin":false},"repo":{"id":44590633,"name":"artanis","full_name":"trapped/artanis","owner":{"login":"trapped","id":4138706,"avatar_url":"https://avatars.githubusercontent.com/u/4138706?v=3","gravatar_id":"","url":"https://api.github.com/users/trapped","html_url":"https://github.com/trapped","followers_url":"https://api.github.com/users/trapped/followers","following_url":"https://api.github.com/users/trapped/following{/other_user}","gists_url":"https://api.github.com/users/trapped/gists{/gist_id}","starred_url":"https://api.github.com/users/trapped/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trapped/subscriptions","organizations_url":"https://api.github.com/users/trapped/orgs","repos_url":"https://api.github.com/users/trapped/repos","events_url":"https://api.github.com/users/trapped/events{/privacy}","received_events_url":"https://api.github.com/users/trapped/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/trapped/artanis","description":"Sinatra-like DSL for the Crystal language (abusing macros)","fork":true,"url":"https://api.github.com/repos/trapped/artanis","forks_url":"https://api.github.com/repos/trapped/artanis/forks","keys_url":"https://api.github.com/repos/trapped/artanis/keys{/key_id}","collaborators_url":"https://api.github.com/repos/trapped/artanis/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/trapped/artanis/teams","hooks_url":"https://api.github.com/repos/trapped/artanis/hooks","issue_events_url":"https://api.github.com/repos/trapped/artanis/issues/events{/number}","events_url":"https://api.github.com/repos/trapped/artanis/events","assignees_url":"https://api.github.com/repos/trapped/artanis/assignees{/user}","branches_url":"https://api.github.com/repos/trapped/artanis/branches{/branch}","tags_url":"https://api.github.com/repos/trapped/artanis/tags","blobs_url":"https://api.github.com/repos/trapped/artanis/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/trapped/artanis/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/trapped/artanis/git/refs{/sha}","trees_url":"https://api.github.com/repos/trapped/artanis/git/trees{/sha}","statuses_url":"https://api.github.com/repos/trapped/artanis/statuses/{sha}","languages_url":"https://api.github.com/repos/trapped/artanis/languages","stargazers_url":"https://api.github.com/repos/trapped/artanis/stargazers","contributors_url":"https://api.github.com/repos/trapped/artanis/contributors","subscribers_url":"https://api.github.com/repos/trapped/artanis/subscribers","subscription_url":"https://api.github.com/repos/trapped/artanis/subscription","commits_url":"https://api.github.com/repos/trapped/artanis/commits{/sha}","git_commits_url":"https://api.github.com/repos/trapped/artanis/git/commits{/sha}","comments_url":"https://api.github.com/repos/trapped/artanis/comments{/number}","issue_comment_url":"https://api.github.com/repos/trapped/artanis/issues/comments{/number}","contents_url":"https://api.github.com/repos/trapped/artanis/contents/{+path}","compare_url":"https://api.github.com/repos/trapped/artanis/compare/{base}...{head}","merges_url":"https://api.github.com/repos/trapped/artanis/merges","archive_url":"https://api.github.com/repos/trapped/artanis/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/trapped/artanis/downloads","issues_url":"https://api.github.com/repos/trapped/artanis/issues{/number}","pulls_url":"https://api.github.com/repos/trapped/artanis/pulls{/number}","milestones_url":"https://api.github.com/repos/trapped/artanis/milestones{/number}","notifications_url":"https://api.github.com/repos/trapped/artanis/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/trapped/artanis/labels{/name}","releases_url":"https://api.github.com/repos/trapped/artanis/releases{/id}","deployments_url":"https://api.github.com/repos/trapped/artanis/deployments","created_at":"2015-10-20T07:51:29Z","updated_at":"2015-10-20T07:51:30Z","pushed_at":"2015-10-20T09:18:07Z","git_url":"git://github.com/trapped/artanis.git","ssh_url":"git@github.com:trapped/artanis.git","clone_url":"https://github.com/trapped/artanis.git","svn_url":"https://github.com/trapped/artanis","homepage":null,"size":104,"stargazers_count":0,"watchers_count":0,"language":"Crystal","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":"ysbaddaden:master","ref":"master","sha":"00517466b8264e8c1d7d8244fefa3027f8b5775b","user":{"login":"ysbaddaden","id":47380,"avatar_url":"https://avatars.githubusercontent.com/u/47380?v=3","gravatar_id":"","url":"https://api.github.com/users/ysbaddaden","html_url":"https://github.com/ysbaddaden","followers_url":"https://api.github.com/users/ysbaddaden/followers","following_url":"https://api.github.com/users/ysbaddaden/following{/other_user}","gists_url":"https://api.github.com/users/ysbaddaden/gists{/gist_id}","starred_url":"https://api.github.com/users/ysbaddaden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ysbaddaden/subscriptions","organizations_url":"https://api.github.com/users/ysbaddaden/orgs","repos_url":"https://api.github.com/users/ysbaddaden/repos","events_url":"https://api.github.com/users/ysbaddaden/events{/privacy}","received_events_url":"https://api.github.com/users/ysbaddaden/received_events","type":"User","site_admin":false},"repo":{"id":37518465,"name":"artanis","full_name":"ysbaddaden/artanis","owner":{"login":"ysbaddaden","id":47380,"avatar_url":"https://avatars.githubusercontent.com/u/47380?v=3","gravatar_id":"","url":"https://api.github.com/users/ysbaddaden","html_url":"https://github.com/ysbaddaden","followers_url":"https://api.github.com/users/ysbaddaden/followers","following_url":"https://api.github.com/users/ysbaddaden/following{/other_user}","gists_url":"https://api.github.com/users/ysbaddaden/gists{/gist_id}","starred_url":"https://api.github.com/users/ysbaddaden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ysbaddaden/subscriptions","organizations_url":"https://api.github.com/users/ysbaddaden/orgs","repos_url":"https://api.github.com/users/ysbaddaden/repos","events_url":"https://api.github.com/users/ysbaddaden/events{/privacy}","received_events_url":"https://api.github.com/users/ysbaddaden/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ysbaddaden/artanis","description":"Sinatra-like DSL for the Crystal language (abusing macros)","fork":false,"url":"https://api.github.com/repos/ysbaddaden/artanis","forks_url":"https://api.github.com/repos/ysbaddaden/artanis/forks","keys_url":"https://api.github.com/repos/ysbaddaden/artanis/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ysbaddaden/artanis/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ysbaddaden/artanis/teams","hooks_url":"https://api.github.com/repos/ysbaddaden/artanis/hooks","issue_events_url":"https://api.github.com/repos/ysbaddaden/artanis/issues/events{/number}","events_url":"https://api.github.com/repos/ysbaddaden/artanis/events","assignees_url":"https://api.github.com/repos/ysbaddaden/artanis/assignees{/user}","branches_url":"https://api.github.com/repos/ysbaddaden/artanis/branches{/branch}","tags_url":"https://api.github.com/repos/ysbaddaden/artanis/tags","blobs_url":"https://api.github.com/repos/ysbaddaden/artanis/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ysbaddaden/artanis/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ysbaddaden/artanis/git/refs{/sha}","trees_url":"https://api.github.com/repos/ysbaddaden/artanis/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ysbaddaden/artanis/statuses/{sha}","languages_url":"https://api.github.com/repos/ysbaddaden/artanis/languages","stargazers_url":"https://api.github.com/repos/ysbaddaden/artanis/stargazers","contributors_url":"https://api.github.com/repos/ysbaddaden/artanis/contributors","subscribers_url":"https://api.github.com/repos/ysbaddaden/artanis/subscribers","subscription_url":"https://api.github.com/repos/ysbaddaden/artanis/subscription","commits_url":"https://api.github.com/repos/ysbaddaden/artanis/commits{/sha}","git_commits_url":"https://api.github.com/repos/ysbaddaden/artanis/git/commits{/sha}","comments_url":"https://api.github.com/repos/ysbaddaden/artanis/comments{/number}","issue_comment_url":"https://api.github.com/repos/ysbaddaden/artanis/issues/comments{/number}","contents_url":"https://api.github.com/repos/ysbaddaden/artanis/contents/{+path}","compare_url":"https://api.github.com/repos/ysbaddaden/artanis/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ysbaddaden/artanis/merges","archive_url":"https://api.github.com/repos/ysbaddaden/artanis/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ysbaddaden/artanis/downloads","issues_url":"https://api.github.com/repos/ysbaddaden/artanis/issues{/number}","pulls_url":"https://api.github.com/repos/ysbaddaden/artanis/pulls{/number}","milestones_url":"https://api.github.com/repos/ysbaddaden/artanis/milestones{/number}","notifications_url":"https://api.github.com/repos/ysbaddaden/artanis/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ysbaddaden/artanis/labels{/name}","releases_url":"https://api.github.com/repos/ysbaddaden/artanis/releases{/id}","deployments_url":"https://api.github.com/repos/ysbaddaden/artanis/deployments","created_at":"2015-06-16T08:42:20Z","updated_at":"2016-02-12T15:28:06Z","pushed_at":"2016-02-26T17:08:36Z","git_url":"git://github.com/ysbaddaden/artanis.git","ssh_url":"git@github.com:ysbaddaden/artanis.git","clone_url":"https://github.com/ysbaddaden/artanis.git","svn_url":"https://github.com/ysbaddaden/artanis","homepage":null,"size":162,"stargazers_count":20,"watchers_count":20,"language":"Crystal","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":3,"forks":3,"open_issues":3,"watchers":20,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ysbaddaden/artanis/pulls/5"},"html":{"href":"https://github.com/ysbaddaden/artanis/pull/5"},"issue":{"href":"https://api.github.com/repos/ysbaddaden/artanis/issues/5"},"comments":{"href":"https://api.github.com/repos/ysbaddaden/artanis/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/ysbaddaden/artanis/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/ysbaddaden/artanis/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ysbaddaden/artanis/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/ysbaddaden/artanis/statuses/f9948bab0d33bed7360ca7cc7ac6fcad0cd6446f"}}}}