mirror of
https://github.com/lennart-k/rustical.git
synced 2025-12-13 21:42:34 +00:00
15 lines
305 B
Rust
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,
|
|
}
|