https://github.com/compositionalit/safe-feliz-routing
https://github.com/compositionalit/safe-feliz-routing
Last synced: 7 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/compositionalit/safe-feliz-routing
- Owner: CompositionalIT
- Created: 2022-11-18T12:44:04.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-11-18T15:19:57.000Z (over 3 years ago)
- Last Synced: 2025-06-26T02:04:21.574Z (9 months ago)
- Language: F#
- Size: 113 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Feliz Routing
This is an example of [Feliz Router](https://github.com/Zaid-Ajaj/Feliz.Router) in a [SAFE](https://safe-stack.github.io/) V4.1.1 app, which requires .NET 6 and node.js 16.
The template Todo app module has been duplicated and renamed as `Page1` and `Page2`, and these pages have had their HTML header labels updated to reflect this.
The Index module now contains the logic needed to monitor for URL changes, parse the segments and use them to render a page.
Page 1 is the default so can be accessed at the root or `/page1`.
Page 2 can be found at `/page2` and any other route will show a Not Found page.
As usual, start the app by running `dotnet tool restore` (the first time only) and then `dotnet run` at the solution root.