use std::sync::{Arc, Mutex};
mod index;
mod landing;
mod listing;
mod logout;
mod session;
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)
}