API Reference

render Class

Description

Render functions.

Methods

getOutput

(path) String static

Gets the output extension name.

Parameters

Returns

isRenderable

(path) Boolean static

Checks if the given path is renderable.

Parameters

Returns

isRenderableSync

(path) Boolean static

Checks if the given path is renderable by synchronized renderer.

Parameters

Returns

render

(data, [options], [callback]) staticasync

Renders data.

Parameters

renderFile

(source, [options], [callback]) staticasync

Renders a file. This function supports helpers and layouts.

Parameters

renderSync

(data, [options]) static

Renders data synchronizedly.

Parameters