-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: use pathlib.Path for template paths
This commit modifies the django-pattern-library to use pathlib.Path for template paths. This ensures that the paths are handled consistently across different operating systems, including Windows. The following functions have been modified to use pathlib.Path: path_to_section() section_for() get_template_dirs() get_pattern_config_str() get_pattern_markdown() Additionally, the TemplateRenderer.get_pattern_templates() method has been updated to use pathlib.Path for template paths. possibly related issue: #116
- Loading branch information
Showing
1 changed file
with
157 additions
and
93 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