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

Skip to main content Skip to navigation

IIslandRenderer Pennington.Islands

Renders a named island fragment embedded in an SPA envelope.

Properties

IslandName string
Unique key identifying this island in the envelope's islands dictionary.

Methods

RenderAsync

#
Task<string> RenderAsync(ContentRoute route, RenderContext context);

Renders the island HTML for the given route, or returns an empty string to skip.

Parameters

route ContentRoute
context RenderContext

Returns

Task<string>

Pennington.Islands.IIslandRenderer

namespace Pennington.Islands;

/// Renders a named island fragment embedded in an SPA envelope.
public interface IIslandRenderer
{
    /// Unique key identifying this island in the envelope's islands dictionary.
    
string IslandName { get; }
/// Renders the island HTML for the given route, or returns an empty string to skip.
Task<string> RenderAsync(ContentRoute route, RenderContext context);
}