Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Site: Make many functions accept PathLike args
Many of the functions in Site would make sense to accept PathLike objects as arguments. In particular, is_partial() (and similar) are used for testing what to do with files, and these functions are called from both get_dependencies() (which is assuming file paths) and from template_names() (which is calling the filter functions with jinja2 posix '/' separators). Either way, the argument represents a path. This does directly revert many of the changes in #104, but I am thinking now that that was going in the wrong direction. This should free up client code to call these filter and helpt functions with whatever they want (and I don't think it's allowing them to use arguments that don't make sense?)
- Loading branch information
Showing
1 changed file
with
24 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters