Login
4 branches 0 tags
Ben (Desktop/Arch) Code cleanup / bugfixes ab2ed2f 1 month ago 117 Commits
rubhub / src / views / not_found.rs
use askama::Template;

use crate::views::{extract_html_parts, theme_render};

#[derive(Template)]
#[template(path = "404.html")]
struct NotFoundTemplate;

pub async fn not_found() -> String {
    let contents = NotFoundTemplate.render().unwrap();
    let (head, body) = extract_html_parts(&contents);
    theme_render(head, body).await
}