plushie/route
Stack-based navigation for multi-page apps.
Each entry is a path with associated params. The stack is LIFO; the bottom entry (root) can never be popped.
Types
Values
pub fn can_go_back(route: Route) -> Bool
Check if navigation can go back (more than root entry).
pub fn history(
route: Route,
) -> List(#(String, dict.Dict(String, String)))
Get the full navigation history (newest first).
pub fn new_with_params(
path: String,
params: dict.Dict(String, String),
) -> Route
Create a new route with initial path and params.