blob: 5424883857564359c01f972612cb99f4cfd01cab (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
use crate::session::Session;
use askama::Template;
use std::collections::HashMap;
#[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,
}
|