'use strict'

const FS = require('fs')
const Base = require('./base')

class GenericPlugin extends Base {
  constructor() {
    super()
    this.registerTag(['Compiler-Include'], function(name, value) {
      return new Promise((resolve, reject) =>
        FS.readFile(value, function(err, data) {
          if (err) reject(err)
          else resolve(data.toString())
        })
      )
    })
  }
  compile(contents, options) {
    return this.executeTags(contents, options)
  }
}

module.exports = GenericPlugin

@@ -388,16 +388,137 @@
 %0A    %7D)%0A
+    this.registerTag(%5B'Compiler-Output'%5D, function(name, value, contents, options) %7B%0A      options.Output = value%0A    %7D)%0A
   %7D%0A  co

Add Compiler-Output tag support