Cross-platform routing for Blinc
Declarative routing with path matching, navigation history, and guards. Routers are scoped — not global singletons.
Example
use blinc_router::{RouterBuilder, Route};
// Build the router (returns a clonable handle)
let router = RouterBuilder::new()
.route(Route::new("/").name("home").view(home_page))
.route(Route::new("/users/:id").view(user_detail))
.not_found(not_found_page)
.build();
// Navigate
router.push("/users/42");
router.back();
// Build current route's view
let page = router.outlet(); // returns Div