New-PWFPage
Description
Build the main code of the HTML5 page. Contains all the necessary for your next steps.
Page will contains all next code.
Store it in a variable to export it at the end.
POSHTML5 generate a full string output, an HTML page.
SYNTAX
EXAMPLES
EXAMPLE 1
EXAMPLE 2
$PageVar = New-PWFPage -Title "MY FIRST TEST" -Chartset "UTF8" -Container -Content {
.. SOME CODE ..
}
PARAMETERS
-Title
The title of your main page. That's the title on the tab of your web browser.
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Content
The scriptblock that contains all other code and PWF functions.
Type: Scriptblock
Parameter Sets: (All)
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Chartset
Your HTML5 chartset. Write it like you write it for HTML code.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: UTF-8
Accept pipeline input: False
Accept wildcard characters: False
-Container
Force your page to be centered and have large margin on each side.