Prepend

Prepends the specified content to the existing content of each document.

Usage

  • Prepend(ContextConfig content)

    Prepends the string value of the returned object to to content of each document. This allows you to specify different content to prepend depending on the execution context.

    • content

      A delegate that returns the content to prepend.

  • Prepend(DocumentConfig content)

    Prepends the string value of the returned object to to content of each document. This allows you to specify different content to prepend for each document depending on the input document.

    • content

      A delegate that returns the content to prepend.

  • Prepend(params IModule[] modules)

    The specified modules are executed against an empty initial document and the results are prepended to the content of every input document (possibly creating more than one output document for each input document).

    • modules

      The modules to execute.

  • Prepend(Object content)

    Prepends the string value of the specified object to the content of every input document.

    • content

      The content to prepend.

GitHub