Wyam.Core.Modules.Control.Concat.
Usage
-
ReadFiles(ContextConfig patterns)Reads all files that match the specified globbing patterns and/or absolute paths. This allows you to specify different patterns and/or paths depending on the context.
patternsA delegate that returns one or more globbing patterns and/or absolute paths.
-
ReadFiles(DocumentConfig patterns)Reads all files that match the specified globbing patterns and/or absolute paths. This allows you to specify different patterns and/or paths depending on the input.
patternsA delegate that returns one or more globbing patterns and/or absolute paths.
-
ReadFiles(params string[] patterns)Reads all files that match the specified globbing patterns and/or absolute paths.
patternsThe globbing patterns and/or absolute paths to read.
Fluent Methods
Chain these methods together after the constructor to modify behavior.
-
Where(Func<IFile, bool> predicate)Specifies a predicate that must be satisfied for the file to be read.
predicateA predicate that returns
trueif the file should be read.
Output Metadata
The metadata values listed below apply to individual documents and are created and set by the module as indicated in their descriptions.
-
Keys.RelativeFileDir:Wyam.Common.IO.DirectoryPathThe path to the folder containing the file relative to the input folder.
-
Keys.RelativeFilePath:Wyam.Common.IO.FilePathThe path to the file relative to the input folder. This metadata value is used when generating links to the document.
-
Keys.RelativeFilePathBase:Wyam.Common.IO.FilePathThe path to the file relative to the input folder without extension.
-
Keys.SourceFileBase:Wyam.Common.IO.FilePathThe name of the original file without extension.
-
Keys.SourceFileDir:Wyam.Common.IO.DirectoryPathThe absolute path to the folder of the original file.
-
Keys.SourceFileExt:System.StringThe extension of the original file (including the ".").
-
Keys.SourceFileName:Wyam.Common.IO.FilePathThe file name of the original file with extension.
-
Keys.SourceFilePath:Wyam.Common.IO.FilePathThe absolute path to the original file.
-
Keys.SourceFilePathBase:Wyam.Common.IO.FilePathThe absolute path to the original file without the file extension.
-
Keys.SourceFileRoot:Wyam.Common.IO.DirectoryPathThe absolute root search path without any nested directories (I.e., the path that was searched, and possibly descended, for the given pattern).
