WithViewStart(Config<NormalizedPath>) Method
Specifies an alternate ViewStart file to use for all Razor pages processed by this module. This lets you specify a different ViewStart file for each document. For example, you could return a ViewStart based on document location or document metadata. Returning null from the function reverts back to the default ViewStart search behavior for that document.
Namespace
Statiq.Razor
Containing Type
RenderRazor

Syntax

public RenderRazor WithViewStart(Config<NormalizedPath> path)

Parameters

Name Type Description
path Config<NormalizedPath> A delegate that should return the ViewStart path as a NormalizedPath, or null for the default ViewStart search behavior.

Return Value

Type Description
RenderRazor The current module instance.