https://github.com/kellpossible/switch-router
An alternate version of the yew RouteService, which aims to provide a more type safe API for setting routes, and some other improvements.
https://github.com/kellpossible/switch-router
Last synced: 8 months ago
JSON representation
An alternate version of the yew RouteService, which aims to provide a more type safe API for setting routes, and some other improvements.
- Host: GitHub
- URL: https://github.com/kellpossible/switch-router
- Owner: kellpossible
- License: mit
- Created: 2020-07-28T17:02:37.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2021-05-19T04:29:22.000Z (about 5 years ago)
- Last Synced: 2025-03-24T03:47:18.176Z (about 1 year ago)
- Language: Rust
- Homepage:
- Size: 14.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# switch-router [](https://github.com/kellpossible/switch-router/actions?query=workflow%3ARust)
An alternate version of the [yew RouteService](https://github.com/yewstack/yew/blob/master/yew-router/src/service.rs), which aims to provide a more type safe API for setting routes, a `SwitchRoute` trait which can easily be implemented manually on a type. This library provides an abstraction trait for the routing service called `SwitchRouteService` that has two implementations:
+ `WebRouteService` - a fork of `yew-router`'s `RouteService`, with a simpler internal implementation by dropping support for `stdweb`.
+ `SimpleRouteService` - an implementation that does not rely on web APIs, useful for developing desktop applications with `web-view`.