{"action":"created","issue":{"url":"https://api.github.com/repos/sagold/handlebars-webpack-plugin/issues/42","repository_url":"https://api.github.com/repos/sagold/handlebars-webpack-plugin","labels_url":"https://api.github.com/repos/sagold/handlebars-webpack-plugin/issues/42/labels{/name}","comments_url":"https://api.github.com/repos/sagold/handlebars-webpack-plugin/issues/42/comments","events_url":"https://api.github.com/repos/sagold/handlebars-webpack-plugin/issues/42/events","html_url":"https://github.com/sagold/handlebars-webpack-plugin/issues/42","id":359354192,"node_id":"MDU6SXNzdWUzNTkzNTQxOTI=","number":42,"title":"Outputting blank HTML","user":{"login":"Dan503","id":10610368,"node_id":"MDQ6VXNlcjEwNjEwMzY4","avatar_url":"https://avatars2.githubusercontent.com/u/10610368?v=4","gravatar_id":"","url":"https://api.github.com/users/Dan503","html_url":"https://github.com/Dan503","followers_url":"https://api.github.com/users/Dan503/followers","following_url":"https://api.github.com/users/Dan503/following{/other_user}","gists_url":"https://api.github.com/users/Dan503/gists{/gist_id}","starred_url":"https://api.github.com/users/Dan503/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dan503/subscriptions","organizations_url":"https://api.github.com/users/Dan503/orgs","repos_url":"https://api.github.com/users/Dan503/repos","events_url":"https://api.github.com/users/Dan503/events{/privacy}","received_events_url":"https://api.github.com/users/Dan503/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-09-12T07:44:01Z","updated_at":"2018-09-14T08:26:57Z","closed_at":"2018-09-14T08:26:57Z","author_association":"NONE","body":"Simplified config file:\r\n\r\n```js\r\nmodule.exports = {\r\n  ...\r\n\r\n  plugins: [\r\n    handlebars: new HandlebarsPlugin({\r\n      entry: path.join(__dirname, 'pages', \"*.handlebars\"),\r\n      output: path.join(__dirname, \"build/[name].html\"),\r\n      partials: [\r\n        path.join(__dirname, \"modules\", '**', \"*.handlebars\"),\r\n        path.join(__dirname, \"partials\", \"*.handlebars\"),\r\n      ],\r\n    }),\r\n  ],\r\n\r\n  ...\r\n}\r\n```\r\n\r\n`pages/page.handlebars` file:\r\n\r\n```\r\n{{#> base title=\"Home | RSL Queensland\" }}\r\n  {{#*inline \"content-block\"}}\r\n    <p>Hello world</p>\r\n  {{/inline}}\r\n{{/base}}\r\n```\r\n\r\n`partials/base.handlebars` file:\r\n\r\n```\r\n<!DOCTYPE html>\r\n<html lang=\"en\">\r\n<head>\r\n  <title>Document</title>\r\n</head>\r\n<body>\r\n\r\n    {{#> content-block}} {{!-- Page content goes here. --}} {{/content-block}}\r\n\r\n</body>\r\n</html>\r\n```\r\n\r\nThe `page.html` file that is output into the build folder is completely blank. I am not seeing any errors in my console.\r\n\r\nversions:\r\n```\r\n\"handlebars-webpack-plugin\": \"1.5.0\",\r\n\"webpack\": \"4.18.0\",\r\n```\r\n\r\nI'm not sure if this is a bug or if I'm doing something wrong. :/"},"comment":{"url":"https://api.github.com/repos/sagold/handlebars-webpack-plugin/issues/comments/421271677","html_url":"https://github.com/sagold/handlebars-webpack-plugin/issues/42#issuecomment-421271677","issue_url":"https://api.github.com/repos/sagold/handlebars-webpack-plugin/issues/42","id":421271677,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMTI3MTY3Nw==","user":{"login":"Dan503","id":10610368,"node_id":"MDQ6VXNlcjEwNjEwMzY4","avatar_url":"https://avatars2.githubusercontent.com/u/10610368?v=4","gravatar_id":"","url":"https://api.github.com/users/Dan503","html_url":"https://github.com/Dan503","followers_url":"https://api.github.com/users/Dan503/followers","following_url":"https://api.github.com/users/Dan503/following{/other_user}","gists_url":"https://api.github.com/users/Dan503/gists{/gist_id}","starred_url":"https://api.github.com/users/Dan503/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dan503/subscriptions","organizations_url":"https://api.github.com/users/Dan503/orgs","repos_url":"https://api.github.com/users/Dan503/repos","events_url":"https://api.github.com/users/Dan503/events{/privacy}","received_events_url":"https://api.github.com/users/Dan503/received_events","type":"User","site_admin":false},"created_at":"2018-09-14T08:26:57Z","updated_at":"2018-09-14T08:26:57Z","author_association":"NONE","body":"A coworker of mine solved the issue 😁\r\n\r\nThis was what the `partials/base.handlebars` file needs to look like:\r\n\r\n```hbs\r\n{{#> partials/base title=\"Home | RSL Queensland\" }}\r\n  {{#*inline \"content-block\"}}\r\n    <p>Hello world</p>\r\n  {{/inline}}\r\n{{/partials/base}}\r\n```\r\nNote that the closing tag needs to be `/partials/base` not just `/base`. I was only setting the opening tag to `partials/base` and was getting an error saying that `partials/base` and `base` don't match. The error was a bit difficult to interpret."}}
{"actor":{"display_login":"Dan503"}}