{"action":"created","issue":{"url":"https://api.github.com/repos/keystonejs/generator-keystone/issues/98","labels_url":"https://api.github.com/repos/keystonejs/generator-keystone/issues/98/labels{/name}","comments_url":"https://api.github.com/repos/keystonejs/generator-keystone/issues/98/comments","events_url":"https://api.github.com/repos/keystonejs/generator-keystone/issues/98/events","html_url":"https://github.com/keystonejs/generator-keystone/issues/98","id":60372915,"number":98,"title":"Error when handlebars used for generating","user":{"login":"olhapi","id":4780263,"avatar_url":"https://avatars.githubusercontent.com/u/4780263?v=3","gravatar_id":"","url":"https://api.github.com/users/olhapi","html_url":"https://github.com/olhapi","followers_url":"https://api.github.com/users/olhapi/followers","following_url":"https://api.github.com/users/olhapi/following{/other_user}","gists_url":"https://api.github.com/users/olhapi/gists{/gist_id}","starred_url":"https://api.github.com/users/olhapi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olhapi/subscriptions","organizations_url":"https://api.github.com/users/olhapi/orgs","repos_url":"https://api.github.com/users/olhapi/repos","events_url":"https://api.github.com/users/olhapi/events{/privacy}","received_events_url":"https://api.github.com/users/olhapi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-03-09T16:44:57Z","updated_at":"2015-08-07T21:43:26Z","closed_at":null,"body":"Got an error after try to start (node keystone) keystone with fresh generated KeystoneJS and Handlebars as a templating language. With Jade everything works fine. \r\nError: getaddrinfo ENOTFOUND\r\n    at errnoException (dns.js:37:11)\r\n    at Object.onanswer [as oncomplete] (dns.js:124:16)"},"comment":{"url":"https://api.github.com/repos/keystonejs/generator-keystone/issues/comments/128839760","html_url":"https://github.com/keystonejs/generator-keystone/issues/98#issuecomment-128839760","issue_url":"https://api.github.com/repos/keystonejs/generator-keystone/issues/98","id":128839760,"user":{"login":"jeffreypriebe","id":1160097,"avatar_url":"https://avatars.githubusercontent.com/u/1160097?v=3","gravatar_id":"","url":"https://api.github.com/users/jeffreypriebe","html_url":"https://github.com/jeffreypriebe","followers_url":"https://api.github.com/users/jeffreypriebe/followers","following_url":"https://api.github.com/users/jeffreypriebe/following{/other_user}","gists_url":"https://api.github.com/users/jeffreypriebe/gists{/gist_id}","starred_url":"https://api.github.com/users/jeffreypriebe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeffreypriebe/subscriptions","organizations_url":"https://api.github.com/users/jeffreypriebe/orgs","repos_url":"https://api.github.com/users/jeffreypriebe/repos","events_url":"https://api.github.com/users/jeffreypriebe/events{/privacy}","received_events_url":"https://api.github.com/users/jeffreypriebe/received_events","type":"User","site_admin":false},"created_at":"2015-08-07T21:43:26Z","updated_at":"2015-08-07T21:43:26Z","body":"The current generated KeystoneJS with Handlebars isn't all there. Issues:\r\n 1. You may need to setup the templating engine yourself: https://github.com/keystonejs/keystone/issues/1441 \r\n 2. There is no enquiry-notification.hbs template (https://github.com/keystonejs/generator-keystone/pull/119)\r\n\r\nI also encountered an issue where the path to the template is wrong. It may be the same https://github.com/keystonejs/generator-keystone/issues/110.\r\nIf you have this issue then, in addition to [ppiekarczyk](https://github.com/ppiekarczyk)'s workaround on [Issue 1441](https://github.com/keystonejs/keystone/issues/1441), you may also need to add to the keystone.Email options object passed in `templateBasePath: path.normalize(path.join(__dirname, '..', 'templates', 'views', 'emails'))`. All together:\r\n```\r\nnew keystone.Email({\r\n    templateExt: 'hbs',\r\n    templateEngine: require('express-handlebars'),\r\n    templateName: 'enquiry-notification'\r\n    templateBasePath: path.normalize(path.join(__dirname, '..', 'templates', 'views', 'emails')),\r\n```"}}