zulip/templates
Eeshan Garg 0a99fa2fd6 render_markdown_path: Handle absolute template paths properly.
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.
2018-08-09 08:43:03 -07:00
..
analytics HTML validation: Remove obsolete attributes from <script>, <style>. 2018-07-13 10:27:23 +05:30
confirmation HTML validation: Remove obsolete attributes from <script>, <style>. 2018-07-13 10:27:23 +05:30
corporate Fix various typos. 2017-11-09 16:26:38 +01:00
tests jinja2: Use function interface for render_markdown_path. 2017-07-31 14:54:54 -07:00
two_factor two_factor: Add templates for 2-factor-auth setup. 2018-05-02 15:20:49 -07:00
zerver render_markdown_path: Handle absolute template paths properly. 2018-08-09 08:43:03 -07:00
zilencer billing: Sign and verify the seat count during upgrade. 2018-07-24 08:04:00 -07:00
.gitignore Add a tool to draw the Django template inheritance graph 2012-10-16 01:33:15 -04:00
404.html Make 4xx and 5xx pages full screen. 2017-08-08 11:58:22 -07:00
500.html Make 4xx and 5xx pages full screen. 2017-08-08 11:58:22 -07:00