lavender.software/build_src/main_page.rs

14 lines
272 B
Rust
Raw Normal View History

2022-03-05 14:41:57 +00:00
use crate::*;
#[derive(Template)]
#[template(path = "main_page.html.j2")]
struct MainPageTemplate {}
2022-03-05 14:41:57 +00:00
pub fn main_page(ctx: &BuildContext) -> Result<()> {
log_info("Rendering main page…");
ctx.write("index.html", MainPageTemplate {}.render()?)?;
2022-03-05 14:41:57 +00:00
Ok(())
}