Usage
-
Sidecar(DocumentConfig sidecarPath, IEnumerable<IModule> modules)Uses a delegate to describe where to find the sidecar file for each input document. If a sidecar file is found, it's content is passed to the specified child modules for processing.
sidecarPathA delegate that returns a
Wyam.Common.IO.FilePathwith the desired sidecar path.modulesThe modules to execute against the sidecar file.
-
Sidecar(DocumentConfig sidecarPath, params IModule[] modules)Uses a delegate to describe where to find the sidecar file for each input document. If a sidecar file is found, it's content is passed to the specified child modules for processing.
sidecarPathA delegate that returns a
Wyam.Common.IO.FilePathwith the desired sidecar path.modulesThe modules to execute against the sidecar file.
-
Sidecar(IEnumerable<IModule> modules)Searches for sidecar files at the same path as the input document SourceFilePath with the additional extension .meta. If a sidecar file is found, it's content is passed to the specified child modules for processing.
modulesThe modules to execute against the sidecar file.
-
Sidecar(params IModule[] modules)Searches for sidecar files at the same path as the input document SourceFilePath with the additional extension .meta. If a sidecar file is found, it's content is passed to the specified child modules for processing.
modulesThe modules to execute against the sidecar file.
-
Sidecar(string extension, IEnumerable<IModule> modules)Searches for sidecar files at the same path as the input document SourceFilePath with the specified additional extension. If a sidecar file is found, it's content is passed to the specified child modules for processing.
extensionThe extension to search.
modulesThe modules to execute against the sidecar file.
-
Sidecar(string extension, params IModule[] modules)Searches for sidecar files at the same path as the input document SourceFilePath with the specified additional extension. If a sidecar file is found, it's content is passed to the specified child modules for processing.
extensionThe extension to search.
modulesThe modules to execute against the sidecar file.
Input Metadata
The metadata values listed below apply to individual documents and are typically set from front matter (with just the name of the key) and used as inputs to the module to control behavior.
-
Keys.SourceFilePath:Wyam.Common.IO.FilePathUsed as the default location at which to search for sidecar files for a given document.
