use askama::Template;
use askama_web::WebTemplate;

#[derive(Template, WebTemplate)]
#[template(path = "privacy.html")]
pub struct PrivacyTemplate {
  pub email: &'static str,
  pub date: &'static str,
}

pub async fn privacy_page() -> PrivacyTemplate {
  PrivacyTemplate {
    email: crate::constants::CONTACT_EMAIL,
    date: crate::constants::UPDATED_DATE,
  }
}
