{"action":"created","issue":{"url":"https://api.github.com/repos/assemble/gulp-assemble/issues/8","labels_url":"https://api.github.com/repos/assemble/gulp-assemble/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/assemble/gulp-assemble/issues/8/comments","events_url":"https://api.github.com/repos/assemble/gulp-assemble/issues/8/events","html_url":"https://github.com/assemble/gulp-assemble/issues/8","id":42096072,"number":8,"title":"Data not passed to templates","user":{"login":"jakemmarsh","id":2916671,"avatar_url":"https://avatars.githubusercontent.com/u/2916671?v=3","gravatar_id":"","url":"https://api.github.com/users/jakemmarsh","html_url":"https://github.com/jakemmarsh","followers_url":"https://api.github.com/users/jakemmarsh/followers","following_url":"https://api.github.com/users/jakemmarsh/following{/other_user}","gists_url":"https://api.github.com/users/jakemmarsh/gists{/gist_id}","starred_url":"https://api.github.com/users/jakemmarsh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jakemmarsh/subscriptions","organizations_url":"https://api.github.com/users/jakemmarsh/orgs","repos_url":"https://api.github.com/users/jakemmarsh/repos","events_url":"https://api.github.com/users/jakemmarsh/events{/privacy}","received_events_url":"https://api.github.com/users/jakemmarsh/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2014-09-05T22:09:46Z","updated_at":"2015-02-20T04:17:50Z","closed_at":"2015-02-20T04:17:50Z","body":"My options object looks like this:\r\n```\r\nvar assembleOptions = {\r\n  data:      'public/data/*.json',\r\n  helpers:   'public/helpers/*.js',\r\n  partials:  'public/templates/partials/*.hbs',\r\n  layoutdir: 'public/templates/layouts/'\r\n};\r\n```\r\n\r\nMy Gulp task looks like this:\r\n```\r\ngulp.task('assemble', function() {\r\n\r\n  // Run assemble on static pages\r\n  return gulp.src('./public/pages/**/*.hbs')\r\n          .pipe(assemble(assembleOptions))\r\n          .pipe(htmlmin())\r\n          .pipe(gulp.dest('build/'));\r\n\r\n});\r\n```\r\n\r\nEverything is working, except any of my data files don't seem to be accessible by the templates. Here is `team.json`, inside the data folder:\r\n```\r\n[\r\n  {\r\n    \"name\": \"Jane Doe\",\r\n    \"title\": \"CEO\"\r\n  },\r\n  {\r\n    \"name\": \"John Doe\",\r\n    \"title\": \"COO\"\r\n  }\r\n]\r\n```\r\n\r\nI'm then attempting to access this in one of my templates with either `{#each team}` or `{#each data.team}` and have had no luck either way. I've seen other people mention having the same problem within other open issues"},"comment":{"url":"https://api.github.com/repos/assemble/gulp-assemble/issues/comments/75187277","html_url":"https://github.com/assemble/gulp-assemble/issues/8#issuecomment-75187277","issue_url":"https://api.github.com/repos/assemble/gulp-assemble/issues/8","id":75187277,"user":{"login":"doowb","id":995160,"avatar_url":"https://avatars.githubusercontent.com/u/995160?v=3","gravatar_id":"","url":"https://api.github.com/users/doowb","html_url":"https://github.com/doowb","followers_url":"https://api.github.com/users/doowb/followers","following_url":"https://api.github.com/users/doowb/following{/other_user}","gists_url":"https://api.github.com/users/doowb/gists{/gist_id}","starred_url":"https://api.github.com/users/doowb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/doowb/subscriptions","organizations_url":"https://api.github.com/users/doowb/orgs","repos_url":"https://api.github.com/users/doowb/repos","events_url":"https://api.github.com/users/doowb/events{/privacy}","received_events_url":"https://api.github.com/users/doowb/received_events","type":"User","site_admin":false},"created_at":"2015-02-20T04:17:50Z","updated_at":"2015-02-20T04:17:50Z","body":"We've updated assemble and gulp-assemble. Load data directly with `assemble.data(...)`. See [assemble 0.6.0 docs](https://github.com/assemble/assemble/tree/v0.6.0) for more information."}}