summaryrefslogtreecommitdiff
path: root/src/template.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/template.rs')
-rw-r--r--src/template.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/template.rs b/src/template.rs
index d8b3511..c02a3df 100644
--- a/src/template.rs
+++ b/src/template.rs
@@ -6,4 +6,10 @@ use crate::session::Session;
#[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
} \ No newline at end of file