Hi All, I'm using hapi js with the handlebar. Right now tried glue plugin but I got the issue on the server.views is not a function but included vision plugin in the manifest regitrations.
Glue.compose(manifest, manifestOptions, (err, server) => {
if (err) {
throw err;
}
server.views({
engines: {
html: handlebars.create(),
},
relativeTo: __dirname,
path: './views',
layoutPath: './views/layout/',
layout: true,
isCached: false,
helpersPath: './views/helpers',
partialsPath: './views/partials'
});
server.route(require('./config/routes'));
server.start(() => {
console.log('hapi days!');
});
});
No responses yet.