learnlytics-go/templ/examples/integration-gofiber
2025-03-20 12:35:13 +01:00
..
go.mod Changed: DB Params 2025-03-20 12:35:13 +01:00
go.sum Changed: DB Params 2025-03-20 12:35:13 +01:00
home_templ.go Changed: DB Params 2025-03-20 12:35:13 +01:00
home.templ Changed: DB Params 2025-03-20 12:35:13 +01:00
main.go Changed: DB Params 2025-03-20 12:35:13 +01:00
README.md Changed: DB Params 2025-03-20 12:35:13 +01:00

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 .