< Back
Use-PodePartialView
Post
NAME Use-PodePartialView
SYNOPSIS
Includes the contents of a partial View into another dynamic View.
SYNTAX
Use-PodePartialView [-Path] <String> [[-Data] <Object>] [<CommonParameters>]
DESCRIPTION
Includes the contents of a partial View into another dynamic View. The partial View can be static or dynamic.
PARAMETERS
-Path <String>
The path to a partial View, relative to the "/views" directory. (Extension is optional).
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Data <Object>
Any dynamic data to supply to a dynamic partial View.
Required? false
Position? 2
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
System.String
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Use-PodePartialView -Path 'shared/footer'
RELATED LINKS
SYNOPSIS
Includes the contents of a partial View into another dynamic View.
SYNTAX
Use-PodePartialView [-Path] <String> [[-Data] <Object>] [<CommonParameters>]
DESCRIPTION
Includes the contents of a partial View into another dynamic View. The partial View can be static or dynamic.
PARAMETERS
-Path <String>
The path to a partial View, relative to the "/views" directory. (Extension is optional).
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Data <Object>
Any dynamic data to supply to a dynamic partial View.
Required? false
Position? 2
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
System.String
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Use-PodePartialView -Path 'shared/footer'
RELATED LINKS