Renders the content of the specified section if it's defined.
If the section is not defined, renders the provided partial.
- Namespace
- Statiq
.Razor - Containing Type
- StatiqRazorPage
<TModel>
Syntax
public IHtmlContent RenderSectionOrPartial(string sectionName, string partialName)
Parameters
Name | Type | Description |
---|---|---|
sectionName | string | The name of the section to render. |
partialName | string | The name of the partial to render. |
Return Value
Type | Description |
---|---|
IHtmlContent | The HTML content. |