diff options
Diffstat (limited to 'src/template.rs')
| -rw-r--r-- | src/template.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/template.rs b/src/template.rs index aa13215..d8b3511 100644 --- a/src/template.rs +++ b/src/template.rs @@ -1,8 +1,9 @@ +use std::collections::HashMap; use askama::Template; use crate::session::Session; #[derive(Template)] #[template(path = "index.html")] pub struct IndexTemplate<'a> { - pub sessions: &'a Vec<Session> + pub sessions: &'a HashMap<String, Session> }
\ No newline at end of file |
