forked from lavender-legacy/lavender.software
13 lines
272 B
Rust
13 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(())
|
|
}
|