Set-PodeViewEngine
SYNOPSIS
Short description
SYNTAX
Set-PodeViewEngine [[-Type] <String>] [[-ScriptBlock] <ScriptBlock>] [[-Extension] <String>]
[-ProgressAction <ActionPreference>] [<CommonParameters>]
DESCRIPTION
Long description
EXAMPLES
EXAMPLE 1
Set-PodeViewEngine -Type HTML
EXAMPLE 2
Set-PodeViewEngine -Type Markdown
EXAMPLE 3
Set-PodeViewEngine -Type PSHTML -Extension PS1 -ScriptBlock { param($path, $data) /* logic */ }
PARAMETERS
-Extension
A custom extension for the engine's files.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-ProgressAction
{{ Fill ProgressAction Description }}
Type: ActionPreference
Parameter Sets: (All)
Aliases: proga
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-ScriptBlock
A ScriptBlock for specifying custom view engine rendering rules.
Type: ScriptBlock
Parameter Sets: (All)
Aliases:
Required: False
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Type
The type name of the view engine (inbuilt types are: Pode and HTML).
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.