StatiqRazorPage<TModel> Class
Namespace
Statiq.Razor
Base Types
graph BT Type-->Base0["RazorPage<TModel>"] Type["StatiqRazorPage<TModel>"] class Type type-node

Syntax

public abstract class StatiqRazorPage<TModel> : RazorPage<TModel>

Type Parameters

Name Description
TModel

Properties

Methods

Name Return Value Summary
GetHtmlHelper() IHtmlHelper<TModel>
The IHtmlHelper isn't normally available in the page, so get one and contextualize it from the service provider.
RenderSection(string, Func<dynamic, HelperResult>) IHtmlContent
Renders the content of the specified section if it's defined. If the section is not defined, renders the provided content.
RenderSectionOrPartial(string, string) IHtmlContent
Renders the content of the specified section if it's defined. If the section is not defined, renders the provided partial.

Extension Methods