diff --git a/src/routes.rs b/src/routes.rs index 00f01e4..dcf85b6 100644 --- a/src/routes.rs +++ b/src/routes.rs @@ -21,8 +21,10 @@ pub async fn notes() -> impl IntoResponse { } pub async fn tuts() -> impl IntoResponse { + let tuts_list = Vec::new(); + templates::Tuts { - tuts_list: "some tuts", + tuts_list: tuts_list, } } diff --git a/src/templates.rs b/src/templates.rs index 71c6975..3c442bd 100644 --- a/src/templates.rs +++ b/src/templates.rs @@ -11,7 +11,7 @@ pub struct Notes; #[derive(Template)] #[template(path = "tuts.html")] pub struct Tuts<'a> { - pub tuts_list: &'a str, + pub tuts_list: Vec<&'a str>, } #[derive(Template)]