IIslandRenderer Pennington.Islands
Renders a named island fragment embedded in an SPA envelope.
Properties
IslandNamestring- 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
routeContentRoutecontextRenderContext
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);
}