1
0
Fork 0

Handlebars strict mode

This commit is contained in:
Alex Kotov 2020-10-21 15:21:30 +05:00
parent 33a7a6803a
commit a74da2fb1b
Signed by: kotovalexarian
GPG Key ID: 553C0EBBEB5D5F08
1 changed files with 3 additions and 1 deletions

View File

@ -21,7 +21,9 @@ pub fn rocket(config: &config::Config) -> Result<rocket::Rocket, ()> {
.manage(i18n)
.manage(database::create_db_pool(config))
.attach(rocket_csrf::Fairing::new())
.attach(Template::fairing())
.attach(Template::custom(|engines| {
engines.handlebars.set_strict_mode(true);
}))
.mount("/", routes::routes())
.mount("/", StaticFiles::new(public_path, ServeOptions::None));