WithLayout(Config<NormalizedPath>) Method
Specifies a layout file to use for all Razor pages processed by this module. This lets you specify a different layout file for each document.
Namespace
Statiq.Razor
Containing Type
RenderRazor

Syntax

public RenderRazor WithLayout(Config<NormalizedPath> path)

Parameters

Name Type Description
path Config<NormalizedPath> A delegate that should return the layout path as a NormalizedPath.

Return Value

Type Description
RenderRazor The current module instance.