Examples/example02.ps1
import-module C:\Users\taavast3\OneDrive\Scripting\Repository\Projects\OpenSource\PSHTML\PSHtml.psm1 -verbose -force $Document = html { head{ title "woop title" link "css/normalize.css" "stylesheet" } body{ Header { img "https://i0.wp.com/powershelldistrict.com/wp-content/uploads/2016/01/logo_pd_quadri.png" "logo powershell" -height 100 -width 400 h1 "This is h1 Title in header" div { p { "This is simply a paragraph in a div." } } } p{ h2 "Example with HTML table" table{ caption "This is a table generated with PSHTML" thead { tr{ th "number1" th "number2" th "number3" } } tbody{ tr{ td "Child 1.1" td "Child 1.2" td "Child 1.3" } tr{ td "Child 2.1" td "Child 2.2" td "Child 2.3" } } tfoot{ tr{ td "Table footer" } } } } p{ a { "This links point to PowershellDistrict" } -href "http://powershellDistrict.com" } Footer { h6 "This is h1 Title in Footer" } } } $Document > "PSHTML_Example2.html" |