//! 404 not-found page renderer.

use minijinja::{context, Environment};

use crate::render::render_safe;

/// Render a 404 page body for `path` in the given language.
pub fn render_not_found_page(env: &Environment, path: &str, lang: &str) -> String {
    render_safe(
        env,
        "pages/not_found.j2",
        context! {
            path => path,
            lang => lang,
        },
    )
}
