Skip to content

Refactor dir_source to be more ideomatic#500

Merged
sunng87 merged 2 commits into
masterfrom
unknown repository
Apr 11, 2022
Merged

Refactor dir_source to be more ideomatic#500
sunng87 merged 2 commits into
masterfrom
unknown repository

Conversation

@ghost

@ghost ghost commented Apr 6, 2022

Copy link
Copy Markdown

This pull request was originally for allowing extensions to not be prefixed by a dot which lead to a general refactor of dir_source.

The main change is that tpl_extension in register_templates_directory doesn't need a dot in the front and non-utf8 file names will not be registered unlike before where mangled strings will be registered.

@sunng87

sunng87 commented Apr 7, 2022

Copy link
Copy Markdown
Owner

@Fallen4Eyes Thank you for the patch! There is a test case failure, please check.

Comment thread src/registry.rs
Comment thread src/registry.rs
@ghost

ghost commented Apr 9, 2022

Copy link
Copy Markdown
Author

I made changes in order to preserve the functionality of the old code as I misunderstood it's functionality.

@sunng87 sunng87 merged commit 9a7bdff into sunng87:master Apr 11, 2022
@sunng87

sunng87 commented Apr 11, 2022

Copy link
Copy Markdown
Owner

@Fallen4Eyes Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant