We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 507ccb4 commit 80b0b0bCopy full SHA for 80b0b0b
render_static/engine.py
@@ -720,19 +720,15 @@ def resolve_renderings(
720
raise TemplateDoesNotExist(selector, chain=chain)
721
722
for _, template in templates.items():
723
+ tmpl_abs_path = Path(template.origin.name).absolute()
724
if any(
725
(
- Path(template.origin.name).absolute().is_relative_to(excl)
726
+ excl == tmpl_abs_path or excl in tmpl_abs_path.parents
727
for excl in excluded_dirs
728
)
729
):
730
continue
- if any(
731
- (
732
- Path(template.origin.name).absolute() == excl
733
- for excl in excluded_files
734
- )
735
- ):
+ if any((tmpl_abs_path == excl for excl in excluded_files)):
736
737
yield Render(
738
selector=selector,
0 commit comments