'use strict'

let fs       = require('fs')
let path     = require('path')
let mustache = require('mustache')

module.exports = (reply, filePath, data) => {
    filePath = path.resolve('views', `${filePath}.html`)

    fs.readFile(filePath, (err, fileContent) => {
        if (err) {
            return reply(err).code(500)
        }

        let rendered = mustache.render(fileContent.toString(), data)
        return reply(rendered)
    })
}

@@ -304,16 +304,24 @@
 eply(err
+.message
 ).code(5
@@ -323,16 +323,17 @@
 ode(500)
+;
 %0A       

Fix mustache helper