-
-
Notifications
You must be signed in to change notification settings - Fork 277
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: update gofiber example with new rendering (#878)
Co-authored-by: Adrian Hesketh <[email protected]>
- Loading branch information
1 parent
7012baa
commit f29cc7a
Showing
5 changed files
with
72 additions
and
15 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 @@ | ||
## Example | ||
|
||
This example demonstrates the usage of templ with gofiber. | ||
|
||
As soon as you start the server you can access http://localhost:3000/ and see the rendered page. | ||
|
||
If you change the URL to http://localhost:3000/john you will see your parameter printed on the page. | ||
|
||
This happens both through parameter passing into the templ component and through context using fiber locals. | ||
|
||
## Tasks | ||
|
||
### build-templ | ||
|
||
``` | ||
templ generate | ||
``` | ||
|
||
### run | ||
|
||
``` | ||
go run . | ||
``` | ||
|
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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