enable registry strict mode

This commit is contained in:
2025-04-09 21:27:04 +04:00
parent 8fd390fe18
commit fe423a199b

View File

@@ -108,6 +108,7 @@ impl Module for TemplateModule {
}
async fn execute(&mut self, ctx: &mut ModulesContext) -> Result<()> {
let mut registry: Handlebars<'static> = Handlebars::new();
registry.set_strict_mode(true);
if let Some(config) = ctx.get_anymap().get::<TemplateConfig>() {
for (templates, path) in config.to_paths() {
tracing::debug!(?templates, ?path, "Registering template");