fixed html escaping and fixed env variable names

This commit is contained in:
Leonard Lorenz 2020-11-21 21:17:33 +01:00
parent 7becde6dc7
commit 7f4637e13f
4 changed files with 7 additions and 7 deletions

View file

@ -29,8 +29,8 @@ async fn main() -> std::io::Result<()> {
HttpServer::new(|| {
let tera =
Tera::new(format!("{}{}", CONFIG_MAP.read().unwrap().get("ROOT_PATH").unwrap(), "/templates/*").as_str()).unwrap();
let mut tera = Tera::new(format!("{}{}", CONFIG_MAP.read().unwrap().get("ROOT_PATH").unwrap(), "/templates/*").as_str()).unwrap();
tera.autoescape_on(vec![".sql"]);
App::new()
.data(tera)