const template = 'index/index' const action = 'client' const state = { title: 'Custom Title', message: 'hallo world' } /** * Corresponds with templates/index/index.pug */ module.exports = { method: 'GET', path: `/${action}`, options: { handler: (request, h) => h.view(template, state) } }