mirror of
https://github.com/pantor/inja.git
synced 2026-03-21 00:15:58 +00:00
add config throw_missing_includes, search_in_files
This commit is contained in:
@@ -475,7 +475,7 @@ public:
|
||||
}
|
||||
// sys::path::remove_dots(pathname, true, sys::path::Style::posix);
|
||||
|
||||
if (template_storage.find(pathname) == template_storage.end()) {
|
||||
if (config.search_included_templates_in_files && template_storage.find(pathname) == template_storage.end()) {
|
||||
Template include_template = parse_template(pathname);
|
||||
template_storage.emplace(pathname, include_template);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user