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