Class

laika.api.Render

RenderGatheredOutput

Related Doc: package Render

Permalink

class RenderGatheredOutput[Writer] extends Render[Writer]

A render operation that gathers input from one or more input documents in an input tree structure to be rendered to a single output destination.

This is necessary for formats like PDF, where the output will be contained in a single file, but the input can still be conveniently organized in a full directory structure.

Linear Supertypes
Render[Writer], RenderConfigBuilder[Writer], OperationConfigBuilder, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. RenderGatheredOutput
  2. Render
  3. RenderConfigBuilder
  4. OperationConfigBuilder
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new RenderGatheredOutput(processor: RenderResultProcessor[Writer], cfg: OperationConfig)

    Permalink

    processor

    the processor that merges the results from the individual render operations into a single output

    cfg

    the configuration for the render operation

Type Members

  1. type DocOps = BinaryOutputOps

    Permalink

    The output operations that can be performed for a single input document.

    The output operations that can be performed for a single input document.

    Definition Classes
    RenderGatheredOutputRender
  2. type ThisType = RenderGatheredOutput[Writer]

    Permalink

    The concrete implementation of the abstract Render type.

    The concrete implementation of the abstract Render type.

    Definition Classes
    RenderGatheredOutputRenderOperationConfigBuilder
  3. type TreeOps = BinaryOutputOps

    Permalink

    The output operations that can be performed for an entire tree of input documents.

    The output operations that can be performed for an entire tree of input documents.

    Definition Classes
    RenderGatheredOutputRender

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. val config: OperationConfig

    Permalink

    The current configuration for this instance.

    The current configuration for this instance.

    Definition Classes
    RenderOperationConfigBuilder
  7. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  9. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. val format: RenderFormat[Writer]

    Permalink
    Attributes
    protected[laika.api]
    Definition Classes
    RenderRenderConfigBuilder
  11. def from(tree: DocumentTree): BinaryOutputOps

    Permalink

    Specifies the document tree to render.

    Specifies the document tree to render.

    tree

    the document tree to render

    returns

    a new BatchOperation instance that allows to specify the outputs

    Definition Classes
    RenderGatheredOutputRender
  12. def from(doc: Document): BinaryOutputOps

    Permalink

    Specifies the document to render.

    Specifies the document to render.

    doc

    the document to render

    returns

    a new Operation instance that allows to specify the output

    Definition Classes
    RenderGatheredOutputRender
  13. def from(element: Element): BinaryOutputOps

    Permalink

    Specifies the element to render.

    Specifies the element to render. This may be a RootElement instance as well as any other type of Element, thus allowing to render document fragments, too.

    returns

    a new Operation instance that allows to specify the output

    Definition Classes
    RenderGatheredOutputRender
  14. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  15. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  16. def inParallel(parallelism: Int, threshold: Int): ThisType

    Permalink

    Instructs the parser and/or renderer to process all inputs and outputs in parallel, with the specified level of parallelism.

    Instructs the parser and/or renderer to process all inputs and outputs in parallel, with the specified level of parallelism.

    The recursive structure of document trees will be flattened before parsing and rendering and then get reassembled afterwards, therefore the parallel processing includes all subtrees of the document tree.

    The actual transformation is a three phase process, the first (parsing) and third (rendering) can run in parallel. The second phase in the middle cannot, as this is the document tree model rewrite step where things like cross references or table of contents get processed that need access to more than just the current document.

    parallelism

    the number of batches to be executed in parallel, 1 means sequential execution

    threshold

    the minimum number of operations required for parallel execution

    Definition Classes
    OperationConfigBuilder
  17. def inParallel: ThisType

    Permalink

    Instructs the parser and/or renderer to process all inputs and outputs in parallel, with the default level of parallelism which corresponds to the number of CPUs.

    Instructs the parser and/or renderer to process all inputs and outputs in parallel, with the default level of parallelism which corresponds to the number of CPUs.

    The recursive structure of document trees will be flattened before parsing and rendering and then get reassembled afterwards, therefore the parallel processing includes all subtrees of the document tree.

    The actual transformation is a three phase process, the first (parsing) and third (rendering) can run in parallel. The second phase in the middle cannot, as this is the document tree model rewrite step where things like cross references or table of contents get processed that need access to more than just the current document.

    Definition Classes
    OperationConfigBuilder
  18. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  19. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  20. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  21. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  22. def render(docTree: DocumentTree, outputTree: OutputTree): Unit

    Permalink

    Renders the specified document tree to the given output.

    Renders the specified document tree to the given output.

    docTree

    the tree to render

    outputTree

    the output tree to render to

    Attributes
    protected[this]
    Definition Classes
    Render
  23. def render(element: Element, output: Output, styles: StyleDeclarationSet): Unit

    Permalink

    Renders the specified element to the given output.

    Renders the specified element to the given output.

    element

    the element to render

    output

    the output to render to

    styles

    the styles to apply to the elements during the render process

    Attributes
    protected[this]
    Definition Classes
    Render
  24. def rendering(customRenderer: (Writer) ⇒ RenderFunction): ThisType

    Permalink

    Specifies a custom render function that overrides one or more of the default renderers for the output format this instance uses.

    Specifies a custom render function that overrides one or more of the default renderers for the output format this instance uses.

    This method expects a function that returns a partial function as the result. The outer function allows to capture the writer instance to write to and will only be invoked once. The partial function will then be invoked for each element it is defined at.

    Simple example for customizing the HTML output for emphasized text, adding a specific style class:

    Transform from Markdown to HTML rendering { out =>
      { case Emphasized(content) => out << """<em class="big">""" << content << "</em>" }
    } fromFile "hello.md" toFile "hello.html"
    Definition Classes
    RenderConfigBuilder
  25. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  26. lazy val theme: Theme

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Render
  27. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  28. def unformatted: ThisType

    Permalink

    Renders without any formatting (line breaks or indentation).

    Renders without any formatting (line breaks or indentation). Useful when storing the output in a database for example.

    Definition Classes
    RenderConfigBuilder
  29. def using(bundles: ExtensionBundle*): ThisType

    Permalink

    Returns a new instance with the specified extension bundles installed.

    Returns a new instance with the specified extension bundles installed. Features in the new bundles may override features in already installed bundles.

    Bundles are usually provided by libraries (by Laika itself or a 3rd-party extension library) or as re-usable building blocks by application code.

    Definition Classes
    OperationConfigBuilder
  30. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  31. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. def withConfig(newConfig: OperationConfig): ThisType

    Permalink

    Returns a new instance with the specified configuration.

    Returns a new instance with the specified configuration.

    This method discards any previously specified options. It is usually meant to be used when copying over the configuration from a fully configured object to an unconfigured one.

    Definition Classes
    RenderGatheredOutputOperationConfigBuilder
  34. def withMessageLevel(level: MessageLevel): ThisType

    Permalink

    Specifies the minimum required level for a system message to get included into the output by this renderer.

    Specifies the minimum required level for a system message to get included into the output by this renderer.

    Definition Classes
    RenderConfigBuilder

Deprecated Value Members

  1. def using(render: (Writer) ⇒ RenderFunction): ThisType

    Permalink
    Definition Classes
    Render
    Annotations
    @deprecated
    Deprecated

    (Since version 0.9.0) renamed to rendering for consistency

Inherited from Render[Writer]

Inherited from RenderConfigBuilder[Writer]

Inherited from OperationConfigBuilder

Inherited from AnyRef

Inherited from Any

Ungrouped