enable registry strict mode
This commit is contained in:
@@ -108,6 +108,7 @@ impl Module for TemplateModule {
|
|||||||
}
|
}
|
||||||
async fn execute(&mut self, ctx: &mut ModulesContext) -> Result<()> {
|
async fn execute(&mut self, ctx: &mut ModulesContext) -> Result<()> {
|
||||||
let mut registry: Handlebars<'static> = Handlebars::new();
|
let mut registry: Handlebars<'static> = Handlebars::new();
|
||||||
|
registry.set_strict_mode(true);
|
||||||
if let Some(config) = ctx.get_anymap().get::<TemplateConfig>() {
|
if let Some(config) = ctx.get_anymap().get::<TemplateConfig>() {
|
||||||
for (templates, path) in config.to_paths() {
|
for (templates, path) in config.to_paths() {
|
||||||
tracing::debug!(?templates, ?path, "Registering template");
|
tracing::debug!(?templates, ?path, "Registering template");
|
||||||
|
|||||||
Reference in New Issue
Block a user