summaryrefslogtreecommitdiff
path: root/src/template.rs
blob: c02a3dfbd92a099edbe4fa7093d7acaf5efae551 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use std::collections::HashMap;
use askama::Template;
use crate::session::Session;

#[derive(Template)]
#[template(path = "index.html")]
pub struct IndexTemplate<'a> {
    pub sessions: &'a HashMap<String, Session>
}

#[derive(Template)]
#[template(path = "session.html")]
pub struct SessionTemplate<'a> {
    pub session: &'a Session
}