use std::sync::{Arc, Mutex};
pub mod index;
pub mod landing;
pub mod listing;
pub mod logout;
pub mod session;
pub mod unauthorized;
pub fn environment() -> Arc<Mutex<minijinja::Environment<'static>>> {
let mut env = minijinja::Environment::new();
env.add_template_owned("index", index::get_content()).unwrap();
env.add_template_owned("landing", landing::get_content()).unwrap();
env.add_template_owned("listing", listing::get_content()).unwrap();
env.add_template_owned("logout", logout::get_content()).unwrap();
env.add_template_owned("session", session::get_content()).unwrap();
env.add_template_owned("unauthorized", unauthorized::get_content()).unwrap();
let mutex = Mutex::new(env.to_owned());
Arc::new(mutex)
}