runique 3.0.2

A Django-inspired web framework for Rust with ORM, templates, and comprehensive security middleware
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use crate::views::*;
use runique::prelude::*;

/// Example route table wiring `/`, `/inscription`, `/connexion` and `/about` to their views.
pub fn routes() -> Router {
    urlpatterns! {
        "/"            => view!{ index },                  name = "index",
        "/inscription" => view!{ soumission_inscription }, name = "inscription",
        "/connexion"   => view!{ connexion },              name = "connexion",
        "/about"       => view!{ about },                  name = "about",
    }
}