Macro perseus::create_app_route
source ·
[−]macro_rules! create_app_route {
{
name => $name : ident, render_cfg => $render_cfg : expr, templates =>
$templates : expr, locales => $locales : expr
} => { ... };
}Expand description
Creates an app-specific routing struct. Sycamore expects an enum to do this, so we create a struct that behaves similarly. If
we don’t do this, we can’t get the information necessary for routing into the enum at all (context and global variables don’t suit
this particular case).
