diff --git a/src/web/templates.rs b/src/web/templates.rs index fd6b98a..4d4b5a0 100644 --- a/src/web/templates.rs +++ b/src/web/templates.rs @@ -11,13 +11,12 @@ pub fn load_templates() -> Result> { .map(|s| s.to_string()) .collect(); for entry in TEMPLATES_DIR.find("**/*.html")? { + tracing::info!(path=entry.path().to_str().unwrap_or_default(), "found embeded template"); if let Some(file) = entry.as_file() { let path = file.path(); let path = path.to_string_lossy().to_string(); - if template_names.contains(&path) { - continue; - } if let Some(content) = file.contents_utf8() { + tracing::info!(path=entry.path().to_str().unwrap_or_default(), "added embeded template"); templates.add_raw_template(&path, content)?; } }