< Back

Set-PodeViewEngine

Sat Jan 18, 2020 7:19 pm

NAME Set-PodeViewEngine



SYNOPSIS

Short description





SYNTAX

Set-PodeViewEngine [[-Type] <String>] [[-ScriptBlock] <ScriptBlock>] [[-Extension] <String>] [<CommonParameters>]





DESCRIPTION

Long description





PARAMETERS

-Type <String>

The type name of the view engine (inbuilt types are: Pode and HTML).



Required? false

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-ScriptBlock <ScriptBlock>

A ScriptBlock for specifying custom view engine rendering rules.



Required? false

Position? 2

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Extension <String>

A custom extension for the engine's files.



Required? false

Position? 3

Default value

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Set-PodeViewEngine -Type HTML













-------------------------- EXAMPLE 2 --------------------------



PS C:\\>Set-PodeViewEngine -Type Markdown













-------------------------- EXAMPLE 3 --------------------------



PS C:\\>Set-PodeViewEngine -Type PSHTML -Extension PS1 -ScriptBlock { param($path, $data) /* logic */ }















RELATED LINKS