extern crate rocket_contrib; use std::env; use std::path::PathBuf; fn template_root() -> PathBuf { let cwd = env::current_dir().expect("current working directory"); cwd.join("tests").join("templates") } #[cfg(feature = "tera_templates")] mod tera_tests { use super::*; use rocket_contrib::Template; use std::collections::HashMap; const UNESCAPED_EXPECTED: &'static str = "\nh_start\ntitle: _test_\nh_end\n\n\n