fixed html escaping and fixed env variable names
This commit is contained in:
parent
7becde6dc7
commit
7f4637e13f
4 changed files with 7 additions and 7 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue