Rocket/contrib/dyn_templates/tests
Sergio Benitez ed5c755bb6 Avoid using 'glob' to walk templates directory.
Previously, `dyn_templates` walked the user-provided `template_dir` path by
constructing a glob pattern prefixed with `template_dir`. If `template_dir`
contained characters recognized by the glob pattern parser, then at best the
pattern failed to parse, and at worst, incorrect directories were searched.

This commit removes the use of `glob` to walk the templates directory and
instead uses `walkdir`, obviating the issues described above.

Fixes #2627.
2023-10-14 15:00:36 -07:00
..
templates Avoid using 'glob' to walk templates directory. 2023-10-14 15:00:36 -07:00
templates.rs Avoid using 'glob' to walk templates directory. 2023-10-14 15:00:36 -07:00