1
0
mirror of https://github.com/matrix-org/matrix-authentication-service.git synced 2025-07-29 22:01:14 +03:00

Simplify template render check logic

Also documents a bunch of things in mas_core::templates
This commit is contained in:
Quentin Gliech
2021-09-24 11:45:25 +02:00
parent a1c7b7f82d
commit e9158382ef
4 changed files with 62 additions and 30 deletions

View File

@ -59,7 +59,8 @@ impl TemplatesCommand {
}
SC::Check { path, skip_builtin } => {
Templates::load(Some(path), !skip_builtin)?;
let templates = Templates::load(Some(path), !skip_builtin)?;
templates.check_render()?;
Ok(())
}