'use strict'

const jade = require('jade')

exports.name = 'jade'
exports.outputFormat = 'html'

exports.compile = function (source, options) {
  const fn = jade.compile(source, options)
  return {
    fn,
    dependencies: fn.dependencies
  }
}
exports.compileClient = function (source, options) {
  return jade.compileClientWithDependenciesTracked(source, options)
}
exports.compileFile = function (path, options) {
  const fn = jade.compileFile(path, options)
  return {
    fn,
    dependencies: fn.dependencies
  }
}
exports.compileFileClient = function (path, options) {
  const fs = require('fs')

  // There is no compileFileClientWithDependenciesTracked so gotta do it
  // manually.
  options = options || {}
  options.filename = options.filename || path
  return exports.compileClient(fs.readFileSync(path, 'utf8'), options)
}

@@ -231,32 +231,33 @@
 endencies%0A  %7D%0A%7D%0A
+%0A
 exports.compileC
@@ -363,16 +363,17 @@
 ions)%0A%7D%0A
+%0A
 exports.
@@ -517,16 +517,17 @@
 s%0A  %7D%0A%7D%0A
+%0A
 exports.

Update eslint