added in several workflow QOL features and updated flake
This commit is contained in:
parent
153276f49c
commit
bc27ffab4e
14 changed files with 3764 additions and 312 deletions
|
|
@ -4,7 +4,9 @@ use crate::templates::RootTemplate;
|
|||
use crate::util::HtmlTemplate;
|
||||
|
||||
pub async fn root() -> impl IntoResponse {
|
||||
let template = RootTemplate {};
|
||||
let template = RootTemplate {
|
||||
name: "Steven"
|
||||
};
|
||||
HtmlTemplate(template)
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,3 @@
|
|||
@tailwind base;
|
||||
@tailwind components;
|
||||
@tailwind utilities;
|
||||
@tailwind utilities;
|
||||
|
|
|
|||
|
|
@ -2,4 +2,14 @@ use askama::Template;
|
|||
|
||||
#[derive(Template)]
|
||||
#[template(path = "root.html")]
|
||||
pub struct RootTemplate;
|
||||
pub struct RootTemplate<'a>{
|
||||
pub name: &'a str,
|
||||
}
|
||||
|
||||
#[derive(Template)]
|
||||
#[template(path="base.html")]
|
||||
pub struct BaseTemplate;
|
||||
|
||||
#[derive(Template)]
|
||||
#[template(path="head.html")]
|
||||
pub struct HeadTemplate;
|
||||
Loading…
Add table
Add a link
Reference in a new issue