-
-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #632 from Badgerati/Issue-579
New lines in Paragraph/Text Element values are now properly rendered
- Loading branch information
Showing
3 changed files
with
34 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
Import-Module Pode -MaximumVersion 2.99.99 -Force | ||
Import-Module ..\src\Pode.Web.psm1 -Force | ||
|
||
Start-PodeServer { | ||
# add a simple endpoint | ||
Add-PodeEndpoint -Address localhost -Port 8090 -Protocol Http | ||
New-PodeLoggingMethod -Terminal | Enable-PodeErrorLogging | ||
|
||
# set the use of templates, and set a login page | ||
Use-PodeWebTemplates -Title 'Paragraphs' -Theme Dark | ||
|
||
# set the home page controls (just a simple paragraph) | ||
$card1 = New-PodeWebCard -Content @( | ||
New-PodeWebParagraph -Value "Example paragraph`r`nover two lines" | ||
) | ||
|
||
$card2 = New-PodeWebCard -Content @( | ||
New-PodeWebParagraph -Content @( | ||
New-PodeWebText -Value "Example text`r`nover two lines" | ||
) | ||
) | ||
|
||
Add-PodeWebPage -Name 'Home' -Path '/' -HomePage -Content $card1, $card2 -Title 'Paragraphs' | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters