mirror of
https://github.com/zulip/zulip.git
synced 2026-07-12 21:04:41 +08:00
One disadvantage of relying on Jinja2 to load all templates is that it only searches a finite set of pre-configured template directories. Unfortunately, that breaks when someone tries to enable a custom privacy or terms page and has the corresponding template in a directory outside of Jinja2's recognized directories (for instance, it won't find `/etc/zulip/terms.md`, the recommended path). This commit makes it so that render_markdown_path can be more sensible about pure Markdown files and load templates with absolute paths directly without relying on Jinja2, if need be. |
||
|---|---|---|
| .. | ||
| analytics | ||
| confirmation | ||
| corporate | ||
| tests | ||
| two_factor | ||
| zerver | ||
| zilencer | ||
| .gitignore | ||
| 404.html | ||
| 500.html | ||