Files
rustical/crates/frontend/src/pages/user.rs
2025-07-04 19:44:17 +02:00

15 lines
305 B
Rust

use askama::Template;
use askama_web::WebTemplate;
use rustical_store::auth::Principal;
pub trait Section: Template {
fn name() -> &'static str;
}
#[derive(Template, WebTemplate)]
#[template(path = "pages/user.html")]
pub struct UserPage<S: Section> {
pub user: Principal,
pub section: S,
}