mirror of
https://github.com/rwf2/Rocket.git
synced 2025-01-11 03:59:05 +00:00
ed5c755bb6
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.
6 lines
132 B
Plaintext
6 lines
132 B
Plaintext
{% extends "tera/base" %}
|
|
{% block title %}{{ title }}{% endblock title %}
|
|
{% block content %}
|
|
{{ content }}
|
|
{% endblock content %}
|