Class: Generator

generator~Generator(logger) → {Generator}

new Generator(logger) → {Generator}

File generator.

Parameters:
Name Type Description
logger Logger
Source:
Returns:
Type
Generator

Methods

(async) generate(site) → {Promise.<Array.<File>>}

Generator files for site.

Parameters:
Name Type Description
site Site
Source:
Returns:

Generated files.

Type
Promise.<Array.<File>>

register(name, fn)

Register a generator function.

Parameters:
Name Type Description
name String
fn generateCallback
Source: