{"action":"created","issue":{"url":"https://api.github.com/repos/jgatjens/frontend/issues/1","repository_url":"https://api.github.com/repos/jgatjens/frontend","labels_url":"https://api.github.com/repos/jgatjens/frontend/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/jgatjens/frontend/issues/1/comments","events_url":"https://api.github.com/repos/jgatjens/frontend/issues/1/events","html_url":"https://github.com/jgatjens/frontend/issues/1","id":182830990,"number":1,"title":"Populating HTML with JSON data","user":{"login":"jgatjens","id":1598461,"avatar_url":"https://avatars.githubusercontent.com/u/1598461?v=3","gravatar_id":"","url":"https://api.github.com/users/jgatjens","html_url":"https://github.com/jgatjens","followers_url":"https://api.github.com/users/jgatjens/followers","following_url":"https://api.github.com/users/jgatjens/following{/other_user}","gists_url":"https://api.github.com/users/jgatjens/gists{/gist_id}","starred_url":"https://api.github.com/users/jgatjens/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jgatjens/subscriptions","organizations_url":"https://api.github.com/users/jgatjens/orgs","repos_url":"https://api.github.com/users/jgatjens/repos","events_url":"https://api.github.com/users/jgatjens/events{/privacy}","received_events_url":"https://api.github.com/users/jgatjens/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jgatjens/frontend/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-13T16:00:34Z","updated_at":"2016-10-13T16:13:02Z","closed_at":null,"body":"Install gulp-data:\r\n`npm i -D gulp-data`\r\n\r\nIn the gulpfile.babel import the module and the data you want to pass to the templates.\r\n```\r\n import data from 'gulp-data';\r\n import jsonData from './src/path/to/json';\r\n```\r\nEdit the nunjucks task to add the data\r\n```\r\ngulp.task('nunjucks', () => {\r\n  // Gets .html and .nunjucks files in pages\r\n  return gulp.src(src.nunjucks)\r\n\t  // Adding data to Nunjucks\r\n      .pipe(data(function() {\r\n\t    return jsonData;\r\n\t  }))\r\n\t  // Renders template with nunjucks\r\n\t  .pipe(nunjucksRender({\r\n\t    path: [src.templates]\r\n\t  }))\r\n\t  // output files in app folder\r\n\t  .pipe(gulp.dest(src.root));\r\n});\r\n``` \r\n"},"comment":{"url":"https://api.github.com/repos/jgatjens/frontend/issues/comments/253561201","html_url":"https://github.com/jgatjens/frontend/issues/1#issuecomment-253561201","issue_url":"https://api.github.com/repos/jgatjens/frontend/issues/1","id":253561201,"user":{"login":"rpswallace","id":417810,"avatar_url":"https://avatars.githubusercontent.com/u/417810?v=3","gravatar_id":"","url":"https://api.github.com/users/rpswallace","html_url":"https://github.com/rpswallace","followers_url":"https://api.github.com/users/rpswallace/followers","following_url":"https://api.github.com/users/rpswallace/following{/other_user}","gists_url":"https://api.github.com/users/rpswallace/gists{/gist_id}","starred_url":"https://api.github.com/users/rpswallace/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rpswallace/subscriptions","organizations_url":"https://api.github.com/users/rpswallace/orgs","repos_url":"https://api.github.com/users/rpswallace/repos","events_url":"https://api.github.com/users/rpswallace/events{/privacy}","received_events_url":"https://api.github.com/users/rpswallace/received_events","type":"User","site_admin":false},"created_at":"2016-10-13T16:13:02Z","updated_at":"2016-10-13T16:13:02Z","body":"Nice!! Thanks! @Marcotss Grow up! :D"}}
{"actor":{"display_login":"rpswallace"}}