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

Skip to main content Skip to navigation

RazorIslandRenderer Pennington.Islands

Base class for island renderers that render a Razor component.

Properties

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

Methods

RenderAsync

#
public async 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.RazorIslandRenderer

namespace Pennington.Islands;

/// Base class for island renderers that render a Razor component.
public class RazorIslandRenderer
{
    /// Unique key identifying this island in the envelope's islands dictionary.
    
public abstract string IslandName { get; }
/// Renders the island HTML for the given route, or returns an empty string to skip.
public async Task<string> RenderAsync(ContentRoute route, RenderContext context);
}