Function leptos_actix::generate_route_list_with_ssg

source ·
pub fn generate_route_list_with_ssg<IV>(
    app_fn: impl Fn() -> IV + 'static + Clone
) -> (Vec<RouteListing>, StaticDataMap)
where IV: IntoView + 'static,
Expand description

Generates a list of all routes defined in Leptos’s Router in your app. We can then use this to automatically create routes in Actix’s App without having to use wildcard matching or fallbacks. Takes in your root app Element as an argument so it can walk you app tree. This version is tailored to generated Actix compatible paths.