type

DocWriter

src @Js
mixin DocWriter

DocWriter is used to output a fandoc model using a series of callbacks.

See pod doc for usage.

methods

docEnd

Exit a document.

docStart

Enter a document.

elemEnd

Exit an element.

elemStart

Enter an element.

text

Write text node.

Slot Details

docEnd

src abstract Void docEnd(Doc doc)

Exit a document.

docStart

src abstract Void docStart(Doc doc)

Enter a document.

elemEnd

src abstract Void elemEnd(DocElem elem)

Exit an element.

elemStart

src abstract Void elemStart(DocElem elem)

Enter an element.

text

src abstract Void text(DocText text)

Write text node.