2022-01-08 14:32:53 +00:00
|
|
|
#![allow(warnings)]
|
2021-12-29 04:20:01 +00:00
|
|
|
//! Dioxus-Router
|
|
|
|
//!
|
|
|
|
//! A simple match-based router and router service for most routing needs.
|
|
|
|
//!
|
|
|
|
//! Dioxus-Router is not a *declarative* router. Instead it uses a simple parse-match
|
|
|
|
//! pattern which can be derived via a macro.
|
|
|
|
//!
|
|
|
|
//! ```rust
|
|
|
|
//! fn app(cx: Scope) -> Element {
|
2022-01-25 20:06:37 +00:00
|
|
|
//!
|
2021-12-29 04:20:01 +00:00
|
|
|
//! }
|
|
|
|
//! ```
|
|
|
|
|
2022-01-05 05:27:22 +00:00
|
|
|
mod hooks {
|
|
|
|
mod use_route;
|
|
|
|
pub use use_route::*;
|
|
|
|
}
|
|
|
|
pub use hooks::*;
|
|
|
|
|
|
|
|
mod components {
|
2022-01-05 21:34:24 +00:00
|
|
|
#![allow(non_snake_case)]
|
|
|
|
|
2022-01-05 05:27:22 +00:00
|
|
|
mod router;
|
|
|
|
pub use router::*;
|
|
|
|
|
|
|
|
mod route;
|
|
|
|
pub use route::*;
|
|
|
|
|
|
|
|
mod link;
|
|
|
|
pub use link::*;
|
|
|
|
}
|
|
|
|
pub use components::*;
|
|
|
|
|
2021-12-29 04:20:01 +00:00
|
|
|
mod platform;
|
2022-01-05 05:27:22 +00:00
|
|
|
mod routecontext;
|
2021-12-29 04:20:01 +00:00
|
|
|
mod service;
|
2021-11-03 04:35:56 +00:00
|
|
|
mod utils;
|
|
|
|
|
2022-01-05 05:27:22 +00:00
|
|
|
pub use routecontext::*;
|
2021-12-29 04:20:01 +00:00
|
|
|
pub use service::*;
|