Amy

Amy

new Amy()

Source:

Methods

(async, static) compileTemplates(glob, inputPath, outputPath, context) → {Promise}

Compiles templates that are in a subfolder of the inputPath und match the glob pattern. Compiled templates are written to the output directory. Commands are executed using the given context.
Source:
Parameters:
Name Type Description
glob String the glob pattern
inputPath String the input path to start checking for files
outputPath String the output path of the compiled files
context Object the context that will be used to execute commands and interpolate placeholders
Returns:
Type:
Promise
a promise that will be resolved once all templates are compiled and written to the output directory