Razor.

WithViewStart(DocumentConfig) Method

Summary

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.
Assembly
Wyam.Razor.dll
Namespace
Wyam.Razor
Containing Type
Razor

Syntax

public Razor WithViewStart(DocumentConfig path)

Parameters

Name Type Description
path DocumentConfig A delegate that should return the ViewStart path as a FilePath, or null for the default ViewStart search behavior.

Return Value

Type Description
Razor The current module instance.
GitHub