add config throw_missing_includes, search_in_files

This commit is contained in:
pantor
2020-06-27 17:47:58 +02:00
parent 390db9f2b7
commit dadbb856cd
7 changed files with 103 additions and 38 deletions

View File

@@ -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);
}