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

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

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