{"action":"created","issue":{"url":"https://api.github.com/repos/patrickkettner/grunt-compile-handlebars/issues/46","labels_url":"https://api.github.com/repos/patrickkettner/grunt-compile-handlebars/issues/46/labels{/name}","comments_url":"https://api.github.com/repos/patrickkettner/grunt-compile-handlebars/issues/46/comments","events_url":"https://api.github.com/repos/patrickkettner/grunt-compile-handlebars/issues/46/events","html_url":"https://github.com/patrickkettner/grunt-compile-handlebars/issues/46","id":54913729,"number":46,"title":"One template, Many JSON, outputted into website directory structure.","user":{"login":"leonbe02","id":10617946,"avatar_url":"https://avatars.githubusercontent.com/u/10617946?v=3","gravatar_id":"","url":"https://api.github.com/users/leonbe02","html_url":"https://github.com/leonbe02","followers_url":"https://api.github.com/users/leonbe02/followers","following_url":"https://api.github.com/users/leonbe02/following{/other_user}","gists_url":"https://api.github.com/users/leonbe02/gists{/gist_id}","starred_url":"https://api.github.com/users/leonbe02/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leonbe02/subscriptions","organizations_url":"https://api.github.com/users/leonbe02/orgs","repos_url":"https://api.github.com/users/leonbe02/repos","events_url":"https://api.github.com/users/leonbe02/events{/privacy}","received_events_url":"https://api.github.com/users/leonbe02/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-01-20T17:34:10Z","updated_at":"2015-04-27T14:05:41Z","closed_at":"2015-04-27T14:05:41Z","body":"I am a web developer for Nintendo and I am looking for a way to have one template with multiple JSON data files that will be used to create different variations of HTML from that template and outputted in the same directory structure as the input JSON files.\r\n\r\nFor example:\r\n- src/\r\n   - templates/\r\n      - index.hbs\r\n   - data/\r\n      - home.json\r\n      - story/\r\n         - story.json\r\n      - characters/\r\n         - chars.json\r\n      - how2play/\r\n         - how2play.json\r\n- dist/\r\n   - index.html\r\n   - story/\r\n      - index.html\r\n   - characters/\r\n      - index.html\r\n   - how2play\r\n      - index.html\r\n\r\ntemplate: 'src/templates/index.hbs',\r\ntemplateData: 'src/data/\\*\\*/\\*.json',\r\noutput: 'dist/\\*\\*/\\*.html'\r\n\r\nReason:\r\nA lot of our websites are static pages with tabs to show different content on the page. For SEO purposes, we would rather not use AJAX to populate the content so we have multiple HTML files instead that are all essentially copy/paste except for the content in the middle. Having one template and multiple JSON would significantly decrease our development time on many of these sites.\r\n\r\nI'm going to work on contributing this to the project unless someone already has a branch/fork that accomplishes this."},"comment":{"url":"https://api.github.com/repos/patrickkettner/grunt-compile-handlebars/issues/comments/96666778","html_url":"https://github.com/patrickkettner/grunt-compile-handlebars/issues/46#issuecomment-96666778","issue_url":"https://api.github.com/repos/patrickkettner/grunt-compile-handlebars/issues/46","id":96666778,"user":{"login":"patrickkettner","id":465414,"avatar_url":"https://avatars.githubusercontent.com/u/465414?v=3","gravatar_id":"","url":"https://api.github.com/users/patrickkettner","html_url":"https://github.com/patrickkettner","followers_url":"https://api.github.com/users/patrickkettner/followers","following_url":"https://api.github.com/users/patrickkettner/following{/other_user}","gists_url":"https://api.github.com/users/patrickkettner/gists{/gist_id}","starred_url":"https://api.github.com/users/patrickkettner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/patrickkettner/subscriptions","organizations_url":"https://api.github.com/users/patrickkettner/orgs","repos_url":"https://api.github.com/users/patrickkettner/repos","events_url":"https://api.github.com/users/patrickkettner/events{/privacy}","received_events_url":"https://api.github.com/users/patrickkettner/received_events","type":"User","site_admin":false},"created_at":"2015-04-27T14:05:40Z","updated_at":"2015-04-27T14:05:40Z","body":"fixed with f57ee7c3ec8f2107956f26b5655932d3e3ca839d"}}