make tuts list a str vec
This commit is contained in:
parent
bc57c6bf1b
commit
c2732fe85c
@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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)]
|
||||
|
Loading…
Reference in New Issue
Block a user