TextProgrammaticContent Pennington.Pipeline
Programmatic content produced as a text body.
Properties
ContentTypestring- Default:
"text/html"MIME type for the response. MetadataPennington.FrontMatter.IFrontMatter?- Default:
nullOptional front matter metadata. RawContentstring- Raw body text (markdown or HTML depending on content type).
Constructors
.ctor
#public record TextProgrammaticContent(
IFrontMatter? Metadata,
string RawContent,
string ContentType = "text/html"
);Programmatic content produced as a text body.
Parameters
MetadataIFrontMatter?- Optional front matter metadata.
RawContentstring- Raw body text (markdown or HTML depending on content type).
ContentTypestring (optional)- MIME type for the response.
Pennington.Pipeline.TextProgrammaticContent
namespace Pennington.Pipeline;
/// Programmatic content produced as a text body.
public record TextProgrammaticContent
{
/// Programmatic content produced as a text body.
public record TextProgrammaticContent(
IFrontMatter? Metadata,
string RawContent,
string ContentType = "text/html"
);
/// MIME type for the response.
string ContentType = "text/html"
/// Optional front matter metadata.
IFrontMatter? Metadata
;
/// Raw body text (markdown or HTML depending on content type).
string RawContent
;
}