Lodash template engine for use with visionary (hapi).
Lodash-vision let's you configure visionary to use lodash templates with hapi.
visionary is used to configure a views engine when using rejoice (the hapi CLI) or glue. This plugin allows configuring the views manager from a manifest which is a plain JSON file and cannot contain calls to server.views() or require the rendering engine.
server.register(require(['vision']))
.then(() => {
server.views({
engines: { html: require('lodash-vision') },
path: 'templates',
partialsPath: 'templates/partials',
helpersPath: 'templates/helpers',
isCached: true
})
return server.start(() => {
console.log('\nStarted the web server on port ' + server.info.port)
})
})
.catch(console.error)
})