Moe-js v0.3

moe.compileFileAsync

Promise version of the moe.compileFile function:

async function moe.compileFileAsync(filename, options)
  • filename is the file to compile
  • options - optional compile options (see below)
  • returns a Promise for the compiled template, or throws an exception