{"action":"created","comment":{"url":"https://api.github.com/repos/maka-io/maka-cli/pulls/comments/70189205","id":70189205,"diff_hunk":"@@ -45,7 +45,7 @@ var RouteGenerator = Generator.create({\n   // Import the template in the routes.js file\n   this.injectIntoFile(\n     destpath,\n-    \"import '\" + context.templatePath + \".js'\\n\", \n+    \"import '\" + context.templatePath + \".js';\\n\", ","path":"lib/generators/route.js","position":null,"original_position":5,"commit_id":"f99155f14ad9a646034d566549e31b7e24c67ae5","original_commit_id":"f99155f14ad9a646034d566549e31b7e24c67ae5","user":{"login":"lukecampbell","id":1155163,"avatar_url":"https://avatars.githubusercontent.com/u/1155163?v=3","gravatar_id":"","url":"https://api.github.com/users/lukecampbell","html_url":"https://github.com/lukecampbell","followers_url":"https://api.github.com/users/lukecampbell/followers","following_url":"https://api.github.com/users/lukecampbell/following{/other_user}","gists_url":"https://api.github.com/users/lukecampbell/gists{/gist_id}","starred_url":"https://api.github.com/users/lukecampbell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukecampbell/subscriptions","organizations_url":"https://api.github.com/users/lukecampbell/orgs","repos_url":"https://api.github.com/users/lukecampbell/repos","events_url":"https://api.github.com/users/lukecampbell/events{/privacy}","received_events_url":"https://api.github.com/users/lukecampbell/received_events","type":"User","site_admin":false},"body":"I like that, lemme see if I can make that work.","created_at":"2016-07-10T22:10:14Z","updated_at":"2016-07-10T22:10:14Z","html_url":"https://github.com/maka-io/maka-cli/pull/3#discussion_r70189205","pull_request_url":"https://api.github.com/repos/maka-io/maka-cli/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/maka-io/maka-cli/pulls/comments/70189205"},"html":{"href":"https://github.com/maka-io/maka-cli/pull/3#discussion_r70189205"},"pull_request":{"href":"https://api.github.com/repos/maka-io/maka-cli/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/maka-io/maka-cli/pulls/3","id":76879213,"html_url":"https://github.com/maka-io/maka-cli/pull/3","diff_url":"https://github.com/maka-io/maka-cli/pull/3.diff","patch_url":"https://github.com/maka-io/maka-cli/pull/3.patch","issue_url":"https://api.github.com/repos/maka-io/maka-cli/issues/3","number":3,"state":"open","locked":false,"title":"Migrates project layout to Meteor 1.3 conventions","user":{"login":"lukecampbell","id":1155163,"avatar_url":"https://avatars.githubusercontent.com/u/1155163?v=3","gravatar_id":"","url":"https://api.github.com/users/lukecampbell","html_url":"https://github.com/lukecampbell","followers_url":"https://api.github.com/users/lukecampbell/followers","following_url":"https://api.github.com/users/lukecampbell/following{/other_user}","gists_url":"https://api.github.com/users/lukecampbell/gists{/gist_id}","starred_url":"https://api.github.com/users/lukecampbell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukecampbell/subscriptions","organizations_url":"https://api.github.com/users/lukecampbell/orgs","repos_url":"https://api.github.com/users/lukecampbell/repos","events_url":"https://api.github.com/users/lukecampbell/events{/privacy}","received_events_url":"https://api.github.com/users/lukecampbell/received_events","type":"User","site_admin":false},"body":"### Refactors routes and templates to use Meteor 1.3 conventions\r\nExamples:\r\n\r\n1.  Basic Routes\r\n\r\n    ```\r\n    maka g:route login\r\n    ```\r\n    \r\n    This will add\r\n    \r\n    ```\r\n    app/imports/ui/templates/login.html\r\n    app/imports/ui/templates/login.js\r\n    app/imports/ui/templates/login.css\r\n    ```\r\n    \r\n    Add add a new route\r\n    \r\n    ```javascript\r\n    FlowRouter.route('/login', {\r\n      name: 'login',\r\n      action() {\r\n        BlazeLayout.render('MasterLayout', {yield: \"login\"});\r\n      }\r\n    });\r\n    ```\r\n    \r\n2.  Routes under components\r\n\r\n    ```\r\n    maka g:route cars/new\r\n    ```\r\n    \r\n    This will add\r\n    \r\n    ```\r\n    app/imports/ui/templates/cars\r\n    app/imports/ui/templates/cars/new.html\r\n    app/imports/ui/templates/cars/new.js\r\n    app/imports/ui/templates/cars/new.css\r\n    ```\r\n    \r\n    Add add a new route\r\n    ```javascript\r\n    FlowRouter.route('/cars/new', {\r\n      name: 'carsNew',\r\n      action() {\r\n        BlazeLayout.render('MasterLayout', {yield: \"carsNew\"});\r\n      }\r\n    });\r\n    ```\r\n\r\n3. Routes with URLs\r\n\r\n    ```\r\n    maka g:route cars/edit cars/:carId\r\n    ```\r\n    \r\n    This will add\r\n    \r\n    ```\r\n    app/imports/ui/templates/cars/edit.html\r\n    app/imports/ui/templates/cars/edit.js\r\n    app/imports/ui/templates/cars/edit.css\r\n    ```\r\n    \r\n    Add add a new route\r\n    \r\n    ```javascript\r\n    FlowRouter.route('/cars/:carId', {\r\n      name: 'carsEdit',\r\n      action() {\r\n        BlazeLayout.render('MasterLayout', {yield: \"carsEdit\"});\r\n      }\r\n    });\r\n    ```","created_at":"2016-07-10T17:45:54Z","updated_at":"2016-07-10T22:10:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ed315d312babc614dbc8105ee644266a6d839084","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/maka-io/maka-cli/pulls/3/commits","review_comments_url":"https://api.github.com/repos/maka-io/maka-cli/pulls/3/comments","review_comment_url":"https://api.github.com/repos/maka-io/maka-cli/pulls/comments{/number}","comments_url":"https://api.github.com/repos/maka-io/maka-cli/issues/3/comments","statuses_url":"https://api.github.com/repos/maka-io/maka-cli/statuses/f99155f14ad9a646034d566549e31b7e24c67ae5","head":{"label":"lukecampbell:m13","ref":"m13","sha":"f99155f14ad9a646034d566549e31b7e24c67ae5","user":{"login":"lukecampbell","id":1155163,"avatar_url":"https://avatars.githubusercontent.com/u/1155163?v=3","gravatar_id":"","url":"https://api.github.com/users/lukecampbell","html_url":"https://github.com/lukecampbell","followers_url":"https://api.github.com/users/lukecampbell/followers","following_url":"https://api.github.com/users/lukecampbell/following{/other_user}","gists_url":"https://api.github.com/users/lukecampbell/gists{/gist_id}","starred_url":"https://api.github.com/users/lukecampbell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukecampbell/subscriptions","organizations_url":"https://api.github.com/users/lukecampbell/orgs","repos_url":"https://api.github.com/users/lukecampbell/repos","events_url":"https://api.github.com/users/lukecampbell/events{/privacy}","received_events_url":"https://api.github.com/users/lukecampbell/received_events","type":"User","site_admin":false},"repo":{"id":62812431,"name":"maka-cli","full_name":"lukecampbell/maka-cli","owner":{"login":"lukecampbell","id":1155163,"avatar_url":"https://avatars.githubusercontent.com/u/1155163?v=3","gravatar_id":"","url":"https://api.github.com/users/lukecampbell","html_url":"https://github.com/lukecampbell","followers_url":"https://api.github.com/users/lukecampbell/followers","following_url":"https://api.github.com/users/lukecampbell/following{/other_user}","gists_url":"https://api.github.com/users/lukecampbell/gists{/gist_id}","starred_url":"https://api.github.com/users/lukecampbell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukecampbell/subscriptions","organizations_url":"https://api.github.com/users/lukecampbell/orgs","repos_url":"https://api.github.com/users/lukecampbell/repos","events_url":"https://api.github.com/users/lukecampbell/events{/privacy}","received_events_url":"https://api.github.com/users/lukecampbell/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lukecampbell/maka-cli","description":null,"fork":true,"url":"https://api.github.com/repos/lukecampbell/maka-cli","forks_url":"https://api.github.com/repos/lukecampbell/maka-cli/forks","keys_url":"https://api.github.com/repos/lukecampbell/maka-cli/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lukecampbell/maka-cli/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lukecampbell/maka-cli/teams","hooks_url":"https://api.github.com/repos/lukecampbell/maka-cli/hooks","issue_events_url":"https://api.github.com/repos/lukecampbell/maka-cli/issues/events{/number}","events_url":"https://api.github.com/repos/lukecampbell/maka-cli/events","assignees_url":"https://api.github.com/repos/lukecampbell/maka-cli/assignees{/user}","branches_url":"https://api.github.com/repos/lukecampbell/maka-cli/branches{/branch}","tags_url":"https://api.github.com/repos/lukecampbell/maka-cli/tags","blobs_url":"https://api.github.com/repos/lukecampbell/maka-cli/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lukecampbell/maka-cli/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lukecampbell/maka-cli/git/refs{/sha}","trees_url":"https://api.github.com/repos/lukecampbell/maka-cli/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lukecampbell/maka-cli/statuses/{sha}","languages_url":"https://api.github.com/repos/lukecampbell/maka-cli/languages","stargazers_url":"https://api.github.com/repos/lukecampbell/maka-cli/stargazers","contributors_url":"https://api.github.com/repos/lukecampbell/maka-cli/contributors","subscribers_url":"https://api.github.com/repos/lukecampbell/maka-cli/subscribers","subscription_url":"https://api.github.com/repos/lukecampbell/maka-cli/subscription","commits_url":"https://api.github.com/repos/lukecampbell/maka-cli/commits{/sha}","git_commits_url":"https://api.github.com/repos/lukecampbell/maka-cli/git/commits{/sha}","comments_url":"https://api.github.com/repos/lukecampbell/maka-cli/comments{/number}","issue_comment_url":"https://api.github.com/repos/lukecampbell/maka-cli/issues/comments{/number}","contents_url":"https://api.github.com/repos/lukecampbell/maka-cli/contents/{+path}","compare_url":"https://api.github.com/repos/lukecampbell/maka-cli/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lukecampbell/maka-cli/merges","archive_url":"https://api.github.com/repos/lukecampbell/maka-cli/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lukecampbell/maka-cli/downloads","issues_url":"https://api.github.com/repos/lukecampbell/maka-cli/issues{/number}","pulls_url":"https://api.github.com/repos/lukecampbell/maka-cli/pulls{/number}","milestones_url":"https://api.github.com/repos/lukecampbell/maka-cli/milestones{/number}","notifications_url":"https://api.github.com/repos/lukecampbell/maka-cli/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lukecampbell/maka-cli/labels{/name}","releases_url":"https://api.github.com/repos/lukecampbell/maka-cli/releases{/id}","deployments_url":"https://api.github.com/repos/lukecampbell/maka-cli/deployments","created_at":"2016-07-07T14:17:35Z","updated_at":"2016-07-07T14:17:36Z","pushed_at":"2016-07-10T18:52:10Z","git_url":"git://github.com/lukecampbell/maka-cli.git","ssh_url":"git@github.com:lukecampbell/maka-cli.git","clone_url":"https://github.com/lukecampbell/maka-cli.git","svn_url":"https://github.com/lukecampbell/maka-cli","homepage":null,"size":115,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":"maka-io:master","ref":"master","sha":"f76e78d73f7f8ea97d994603fc3cb50db9f1fed7","user":{"login":"maka-io","id":3743882,"avatar_url":"https://avatars.githubusercontent.com/u/3743882?v=3","gravatar_id":"","url":"https://api.github.com/users/maka-io","html_url":"https://github.com/maka-io","followers_url":"https://api.github.com/users/maka-io/followers","following_url":"https://api.github.com/users/maka-io/following{/other_user}","gists_url":"https://api.github.com/users/maka-io/gists{/gist_id}","starred_url":"https://api.github.com/users/maka-io/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maka-io/subscriptions","organizations_url":"https://api.github.com/users/maka-io/orgs","repos_url":"https://api.github.com/users/maka-io/repos","events_url":"https://api.github.com/users/maka-io/events{/privacy}","received_events_url":"https://api.github.com/users/maka-io/received_events","type":"User","site_admin":false},"repo":{"id":56183721,"name":"maka-cli","full_name":"maka-io/maka-cli","owner":{"login":"maka-io","id":3743882,"avatar_url":"https://avatars.githubusercontent.com/u/3743882?v=3","gravatar_id":"","url":"https://api.github.com/users/maka-io","html_url":"https://github.com/maka-io","followers_url":"https://api.github.com/users/maka-io/followers","following_url":"https://api.github.com/users/maka-io/following{/other_user}","gists_url":"https://api.github.com/users/maka-io/gists{/gist_id}","starred_url":"https://api.github.com/users/maka-io/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maka-io/subscriptions","organizations_url":"https://api.github.com/users/maka-io/orgs","repos_url":"https://api.github.com/users/maka-io/repos","events_url":"https://api.github.com/users/maka-io/events{/privacy}","received_events_url":"https://api.github.com/users/maka-io/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/maka-io/maka-cli","description":"","fork":false,"url":"https://api.github.com/repos/maka-io/maka-cli","forks_url":"https://api.github.com/repos/maka-io/maka-cli/forks","keys_url":"https://api.github.com/repos/maka-io/maka-cli/keys{/key_id}","collaborators_url":"https://api.github.com/repos/maka-io/maka-cli/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/maka-io/maka-cli/teams","hooks_url":"https://api.github.com/repos/maka-io/maka-cli/hooks","issue_events_url":"https://api.github.com/repos/maka-io/maka-cli/issues/events{/number}","events_url":"https://api.github.com/repos/maka-io/maka-cli/events","assignees_url":"https://api.github.com/repos/maka-io/maka-cli/assignees{/user}","branches_url":"https://api.github.com/repos/maka-io/maka-cli/branches{/branch}","tags_url":"https://api.github.com/repos/maka-io/maka-cli/tags","blobs_url":"https://api.github.com/repos/maka-io/maka-cli/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/maka-io/maka-cli/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/maka-io/maka-cli/git/refs{/sha}","trees_url":"https://api.github.com/repos/maka-io/maka-cli/git/trees{/sha}","statuses_url":"https://api.github.com/repos/maka-io/maka-cli/statuses/{sha}","languages_url":"https://api.github.com/repos/maka-io/maka-cli/languages","stargazers_url":"https://api.github.com/repos/maka-io/maka-cli/stargazers","contributors_url":"https://api.github.com/repos/maka-io/maka-cli/contributors","subscribers_url":"https://api.github.com/repos/maka-io/maka-cli/subscribers","subscription_url":"https://api.github.com/repos/maka-io/maka-cli/subscription","commits_url":"https://api.github.com/repos/maka-io/maka-cli/commits{/sha}","git_commits_url":"https://api.github.com/repos/maka-io/maka-cli/git/commits{/sha}","comments_url":"https://api.github.com/repos/maka-io/maka-cli/comments{/number}","issue_comment_url":"https://api.github.com/repos/maka-io/maka-cli/issues/comments{/number}","contents_url":"https://api.github.com/repos/maka-io/maka-cli/contents/{+path}","compare_url":"https://api.github.com/repos/maka-io/maka-cli/compare/{base}...{head}","merges_url":"https://api.github.com/repos/maka-io/maka-cli/merges","archive_url":"https://api.github.com/repos/maka-io/maka-cli/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/maka-io/maka-cli/downloads","issues_url":"https://api.github.com/repos/maka-io/maka-cli/issues{/number}","pulls_url":"https://api.github.com/repos/maka-io/maka-cli/pulls{/number}","milestones_url":"https://api.github.com/repos/maka-io/maka-cli/milestones{/number}","notifications_url":"https://api.github.com/repos/maka-io/maka-cli/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/maka-io/maka-cli/labels{/name}","releases_url":"https://api.github.com/repos/maka-io/maka-cli/releases{/id}","deployments_url":"https://api.github.com/repos/maka-io/maka-cli/deployments","created_at":"2016-04-13T20:27:20Z","updated_at":"2016-07-07T14:09:34Z","pushed_at":"2016-07-10T19:34:56Z","git_url":"git://github.com/maka-io/maka-cli.git","ssh_url":"git@github.com:maka-io/maka-cli.git","clone_url":"https://github.com/maka-io/maka-cli.git","svn_url":"https://github.com/maka-io/maka-cli","homepage":null,"size":135,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/maka-io/maka-cli/pulls/3"},"html":{"href":"https://github.com/maka-io/maka-cli/pull/3"},"issue":{"href":"https://api.github.com/repos/maka-io/maka-cli/issues/3"},"comments":{"href":"https://api.github.com/repos/maka-io/maka-cli/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/maka-io/maka-cli/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/maka-io/maka-cli/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/maka-io/maka-cli/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/maka-io/maka-cli/statuses/f99155f14ad9a646034d566549e31b7e24c67ae5"}}}}
{"actor":{"display_login":"lukecampbell"}}