docObject
Writes out a docObject.
.write.docObject(docObject, renderer, options, setCurrentDocObjectForHelpers)
Parameters
-
docObject
{docObject}
The doc object to be written out.
-
renderer
{renderer(docObject)}
A function that renders the output.
-
options
{Object}
Configuration options.
-
setCurrentDocObjectForHelpers
{function(documentjs.process.docObject)}
Returns
{Promise}
A promise that resolves when the file has been written out.