velto 1.9.0

Velto: expressive, async-native, and grounded Rust framework
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use velto::prelude::*;

fn page(_req: &Request) -> Response {
    render!("page.html", {
        "title" => "Included Header"
    })
}

#[tokio::main]
async fn main() -> std::io::Result<()> {
    let mut app = App::new();
    route!(app, "/" => page);
    app.run("127.0.0.1:8080").await
}