Class: Renderer

renderer~Renderer(logger, skipRenderListopt) → {Renderer}

new Renderer(logger, skipRenderListopt) → {Renderer}

File renderer.

Parameters:
Name Type Attributes Description
logger Logger
skipRenderList Array.<String> <optional>

File that won't be rendered.

Source:
Returns:
Type
Renderer

Methods

register(srcExt, docExtopt, fn)

Register a renderer function.

Parameters:
Name Type Attributes Default Description
srcExt String

Source file's extend name starts with ..

docExt String <optional>
null

Doc file's extend name starts with ..

fn renderCallback
Source:

render(input) → {Promise.<Array.<File>>}

Render file with renderer function.

Parameters:
Name Type Description
input File
Source:
Returns:

Promise of rendered files.

Type
Promise.<Array.<File>>