// ------------------------------------
// #POSTHTML - EXPRESS
// ------------------------------------

const fs = require('fs')
const posthtml = require('posthtml')

module.exports = function (path, options, cb) {
  options.extend = options.extend || false

  let plugins

  if (!options.plugins && options.extend === false) {
    plugins = options.settings['view options'] || []
  } else if (options.extend === true) {
    plugins = options.settings['view options'].concat(options.plugins)
  } else {
    plugins = options.plugins || []
  }

  fs.readFile(path, function (err, content) {
    if (err) return cb(new Error(err))

    posthtml(plugins)
      .process(content.toString())
      .then(result => cb(null, result.html))
  })
}

@@ -97,16 +97,30 @@
 ------%0A%0A
+'use strict'%0A%0A
 const fs
@@ -174,16 +174,26 @@
 html')%0A%0A
+exports = 
 module.e

add missing 'use strict' statement