use hyper::header::CACHE_CONTROL; use hyper::{Body, Response}; use std::collections::HashMap; use tera::{Context, Tera}; use crate::controller::utils; use crate::controller::wallet::Wallet; pub fn error(wallet: &Wallet, title: &str, message: &str) -> Response
{ utils::with_header( Response::new( template(&wallet.assets, &wallet.templates, title, message).into(), ), CACHE_CONTROL, "no-cache", ) } pub fn template( assets: &HashMap