FileSource Pennington.Pipeline
Content sourced from a file on disk, tagged with a format key that selects its parser/renderer.
Properties
Formatstring- Format key (e.g.
"markdown","cook") selecting the parser and renderer. IsMarkdownbool- True when
Formatis one of the built-in markdown dispatch keys (seeMarkdownFormat). PathFilePath- Absolute path to the source file.
Constructors
FileSource
#public FileSource(FilePath Path, string Format)
Content sourced from a file on disk, tagged with a format key that selects its parser/renderer.
Parameters
PathFilePath- Absolute path to the source file.
Formatstring- Format key (e.g.
"markdown","cook") selecting the parser and renderer.
Pennington.Pipeline.FileSource
namespace Pennington.Pipeline;
/// Content sourced from a file on disk, tagged with a format key that selects its parser/renderer.
public record FileSource
{
/// Content sourced from a file on disk, tagged with a format key that selects its parser/renderer.
public FileSource(FilePath Path, string Format)
;
/// Format key (e.g. "markdown", "cook") selecting the parser and renderer.
public string Format { get; set; }
/// True when Format is one of the built-in markdown dispatch keys (see MarkdownFormat).
public bool IsMarkdown { get; }
/// Absolute path to the source file.
public FilePath Path { get; set; }
}