Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
app.register([Vision, Inert], (err) => {
if (err) {
throw err;
}
// rendering engine
app.views({
defaultExtension: 'ng2.html',
engines: {
'ng2.html': {
module: new hapiEngine(),
compileMode: 'async'
}
},
relativeTo: __dirname,
path: path.join(ROOT, 'examples')
});
});