This site provides a machine-readable index at /llms.txt.

Skip to main content Skip to navigation

ContentToCreate Pennington.Content

A dynamically generated file (e.g., search index, RSS feed).

Properties

ContentGenerator System.Func<System.Threading.Tasks.Task<byte[]>>
Produces the file bytes when invoked.
ContentType string
MIME type served for the generated file.
OutputPath Pennington.Routing.FilePath
Destination path in the generated site.

Constructors

.ctor

#
public record ContentToCreate(FilePath OutputPath, Func<Task<byte[]>> ContentGenerator, string ContentType);

A dynamically generated file (e.g., search index, RSS feed).

Parameters

OutputPath FilePath
Destination path in the generated site.
ContentGenerator Func<Task<byte[]>>
Produces the file bytes when invoked.
ContentType string
MIME type served for the generated file.

Pennington.Content.ContentToCreate

namespace Pennington.Content;

/// A dynamically generated file (e.g., search index, RSS feed).
public record ContentToCreate
{
    /// A dynamically generated file (e.g., search index, RSS feed).
    
public record ContentToCreate(FilePath OutputPath, Func<Task<byte[]>> ContentGenerator, string ContentType);
/// Produces the file bytes when invoked.
Func<Task<byte[]>> ContentGenerator
; /// MIME type served for the generated file.
string ContentType
; /// Destination path in the generated site.
FilePath OutputPath
; }