Macro perseus::define_app[][src]

macro_rules! define_app {
    {
    root : $root_selector : literal, route : $route : ty, router :
    { $($pat : pat => [$name : expr, $fn : expr]), + }, error_pages :
    $error_pages : expr, templates : [$($template : expr), +]
    $(, config_manager : $config_manager : expr) ?
} => { ... };
}
Expand description

Defines the components to create an entrypoint for the app. The actual entrypoint is created in the .perseus/ crate (where we can get all the dependencies without driving the user’s Cargo.toml nuts). This also defines the template map. This is intended to make compatibility with the Perseus CLI significantly easier.