Pipeline
class Pipeline(context: MutableContext, val options: PipelineOptions, libraries: Set<Library>, renderer: (RendererFactory, Context) -> RenderingComponents, hooks: PipelineHooks? = null)
A representation of the sequential set of actions to perform in order to produce an output artifact from a raw source. Each component of the pipeline takes an input from the output of the previous one.
Parameters
context
initial context data shared across this pipeline, which will is filled with useful information that are handed over to other stages of this pipeline. This allows gathering information on-the-fly without additional visits of the whole tree
libraries
libraries to load and look up functions from
renderer
supplier of the renderer implementation to use, produced by the flavor's RendererFactory with the output attributes of the parser as an argument
hooks
optional actions to run after each stage has been completed
Constructors
Link copied to clipboard
constructor(context: MutableContext, options: PipelineOptions, libraries: Set<Library>, renderer: (RendererFactory, Context) -> RenderingComponents, hooks: PipelineHooks? = null)