ConcatBranch

Executes a sequence of modules against the input documents and concatenates their results and the original input. This is similar to Wyam.Core.Modules.Control.Branch except that the results of the specified modules are concatenated with the original input documents instead of being forgotten.

Usage

  • ConcatBranch(IEnumerable<> modules)

    Evaluates the specified modules with each input document as the initial document and then outputs the original input documents without modification concatenated with the result documents from the specified modules.

    • modules

      The modules to execute.

  • ConcatBranch(params IModule[] modules)

    Evaluates the specified modules with each input document as the initial document and then outputs the original input documents without modification concatenated with the result documents from the specified modules.

    • modules

      The modules to execute.

Fluent Methods

Chain these methods together after the constructor to modify behavior.

  • Where(DocumentConfig predicate)

    Limits the documents passed to the child modules to those that satisfy the supplied predicate. All original input documents are output without modification regardless of whether they satisfy the predicate.

    • predicate

      A delegate that should return a bool.

GitHub