lavender.software/build_src/main_page.rs

14 lines
272 B
Rust

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