diff options
| author | Jomar Milan <jomarm@jomarm.com> | 2026-05-30 00:09:59 -0700 |
|---|---|---|
| committer | Jomar Milan <jomarm@jomarm.com> | 2026-05-30 00:09:59 -0700 |
| commit | 453ba51e78024fed7d22f984959b050182badffd (patch) | |
| tree | 0dfb75f0a8c86ee800b62154ce270af720dbe775 /src/template.rs | |
| parent | 144e183280dae877d331acac819c46ef698fe800 (diff) | |
Store sessions in a hash map
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 |
