Moe-js v0.3

moe.compileFileSync

Synchronous version of the moe.compileFile function:

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