script 0.5.0

barebones http scripting
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
pub use askama::Template;

#[derive(Template)]
#[template(path = "error.html")]
pub struct ServerError {
    pub error: String,
    pub context: Vec<(String, String)>,
}

#[derive(Template)]
#[template(path = "message.html")]
pub struct Message<'a> {
    pub code: u16,
    pub note: &'a str,
    pub error: &'a str,
    pub message: String,
}