make tuts list a str vec

This commit is contained in:
Triston Armstrong 2024-03-25 23:52:32 -05:00
parent bc57c6bf1b
commit c2732fe85c
2 changed files with 4 additions and 2 deletions

View File

@ -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,
}
}

View File

@ -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)]