function mejsCompile (mejsFile, options) {
  options = options || {}

  if (typeof mejsFile === 'string') {
    options.mini = false
    mejsFile = mejsCompile.precompileFromGlob(mejsFile, options)
  }
  if (!(mejsFile instanceof File)) throw new TypeError(String(mejsFile) + ' is not File object')
  const sandbox = options.sandbox || {console: console}
  sandbox.module = {exports: {}}
  runInNewContext(mejsFile.contents.toString(), sandbox, {filename: mejsFile.path})
  return sandbox.module.exports
}
function mejsCompile (mejsFile, options) {
  options = options || {}

  if (typeof mejsFile === 'string') {
    options.mini = false
    mejsFile = mejsCompile.precompileFromGlob(mejsFile, options)
  }
  if (!(mejsFile instanceof File)) throw new TypeError(String(mejsFile) + ' is not File object')
  const sandbox = options.sandbox || {console: console}
  sandbox.module = {exports: {}}
  runInNewContext(mejsFile.contents.toString(), sandbox, {filename: mejsFile.path})
  return sandbox.module.exports
}
function mejsCompile ( mejsFile , options ) { options = options || { } if ( typeof mejsFile === 'string' ) { options . mini = false mejsFile = mejsCompile . precompileFromGlob ( mejsFile , options ) } if ( ! ( mejsFile instanceof File ) ) throw new TypeError ( String ( mejsFile ) + ' is not File object' ) const sandbox = options . sandbox || { console : console } sandbox . module = { exports : { } } runInNewContext ( mejsFile . contents . toString ( ) , sandbox , { filename : mejsFile . path } ) return sandbox . module . exports }
mejsCompile(pattern, options) => Mejs class mejsCompile(mejsFile, options) => Mejs class  Examples:  const Mejs = mejsCompile('views/**/*.ejs') const mejs = new Mejs({ config: config })  ... mejs.render('index', {user: req.user}) ...
mejsCompile ( pattern options ) = > Mejs class mejsCompile ( mejsFile options ) = > Mejs class Examples : const Mejs = mejsCompile ( views / ** / * . ejs ) const mejs = new Mejs ( { config : config } ) ... mejs . render ( index { user : req . user } ) ...