zulip/templates/zerver
Umair Khan 5359e6b0d4 Convert Zulip to use Jinja2 templates.
This results in a substantial performance improvement for all of
Zulip's backend templates.

Changes in templates:
- Change `block.super` to `super()`.
- Remove `load` tag because Jinja2 doesn't support it.
- Use `minified_js()|safe` instead of `{% minified_js %}`.
- Use `compressed_css()|safe` instead of `{% compressed_css %}`.
- `forloop.first` -> `loop.first`.
- Use `{{ csrf_input }}` instead of `{% csrf_token %}`.
- Use `{# ... #}` instead of `{% comment %}`.
- Use `url()` instead of `{% url %}`.
- Use `_()` instead of `{% trans %}` because in Jinja `trans` is a block tag.
- Use `{% trans %}` instead of `{% blocktrans %}`.
- Use `{% raw %}` instead of `{% verbatim %}`.

Changes in tools:
- Check for `trans` block in `check-templates` instead of `blocktrans`

Changes in backend:
- Create custom `render_to_response` function which takes `request` objects
  instead of `RequestContext` object. There are two reasons to do this:
    1. `RequestContext` is not compatible with Jinja2
    2. `RequestContext` in `render_to_response` is deprecated.
- Add Jinja2 related support files in zproject/jinja2 directory. It
  includes a custom backend and a template renderer, compressors for js
  and css and Jinja2 environment handler.
- Enable `slugify` and `pluralize` filters in Jinja2 environment.

Fixes #620.
2016-05-09 09:55:18 -07:00
..
emails Convert Zulip to use Jinja2 templates. 2016-05-09 09:55:18 -07:00
accounts_accept_terms.html Convert Zulip to use Jinja2 templates. 2016-05-09 09:55:18 -07:00
accounts_home.html Convert Zulip to use Jinja2 templates. 2016-05-09 09:55:18 -07:00
accounts_send_confirm.html Convert Zulip to use Jinja2 templates. 2016-05-09 09:55:18 -07:00
api.html Convert Zulip to use Jinja2 templates. 2016-05-09 09:55:18 -07:00
api_content.json Add GET /export endpoint, which dumps important tables in json. 2015-08-19 15:31:08 -07:00
api_endpoints.html Convert Zulip to use Jinja2 templates. 2016-05-09 09:55:18 -07:00
apps.html Convert Zulip to use Jinja2 templates. 2016-05-09 09:55:18 -07:00
bankruptcy.html Convert Zulip to use Jinja2 templates. 2016-05-09 09:55:18 -07:00
base.html Convert Zulip to use Jinja2 templates. 2016-05-09 09:55:18 -07:00
closed_realm.html Convert Zulip to use Jinja2 templates. 2016-05-09 09:55:18 -07:00
compose.html Convert Zulip to use Jinja2 templates. 2016-05-09 09:55:18 -07:00
deactivated.html Convert Zulip to use Jinja2 templates. 2016-05-09 09:55:18 -07:00
debug.html Convert Zulip to use Jinja2 templates. 2016-05-09 09:55:18 -07:00
features.html Convert Zulip to use Jinja2 templates. 2016-05-09 09:55:18 -07:00
hello.html Convert Zulip to use Jinja2 templates. 2016-05-09 09:55:18 -07:00
home.html Convert Zulip to use Jinja2 templates. 2016-05-09 09:55:18 -07:00
index.html Convert Zulip to use Jinja2 templates. 2016-05-09 09:55:18 -07:00
initial_invite_page.html Convert Zulip to use Jinja2 templates. 2016-05-09 09:55:18 -07:00
integrations.html Convert Zulip to use Jinja2 templates. 2016-05-09 09:55:18 -07:00
invite_user.html Convert Zulip to use Jinja2 templates. 2016-05-09 09:55:18 -07:00
keyboard_shortcuts.html Convert Zulip to use Jinja2 templates. 2016-05-09 09:55:18 -07:00
left-sidebar.html Convert Zulip to use Jinja2 templates. 2016-05-09 09:55:18 -07:00
login.html Convert Zulip to use Jinja2 templates. 2016-05-09 09:55:18 -07:00
logout.html Convert Zulip to use Jinja2 templates. 2016-05-09 09:55:18 -07:00
markdown_help.html Convert Zulip to use Jinja2 templates. 2016-05-09 09:55:18 -07:00
missed_message_email.txt Convert Zulip to use Jinja2 templates. 2016-05-09 09:55:18 -07:00
missed_message_email_html.txt Convert Zulip to use Jinja2 templates. 2016-05-09 09:55:18 -07:00
navbar.html Convert Zulip to use Jinja2 templates. 2016-05-09 09:55:18 -07:00
portico.html Convert Zulip to use Jinja2 templates. 2016-05-09 09:55:18 -07:00
portico_signup.html Convert Zulip to use Jinja2 templates. 2016-05-09 09:55:18 -07:00
register.html Convert Zulip to use Jinja2 templates. 2016-05-09 09:55:18 -07:00
reset.html Convert Zulip to use Jinja2 templates. 2016-05-09 09:55:18 -07:00
reset_confirm.html Convert Zulip to use Jinja2 templates. 2016-05-09 09:55:18 -07:00
reset_done.html Convert Zulip to use Jinja2 templates. 2016-05-09 09:55:18 -07:00
reset_emailed.html Convert Zulip to use Jinja2 templates. 2016-05-09 09:55:18 -07:00
right-sidebar.html Convert Zulip to use Jinja2 templates. 2016-05-09 09:55:18 -07:00
search_operators.html Convert Zulip to use Jinja2 templates. 2016-05-09 09:55:18 -07:00
stream_creation_prompt.html Convert Zulip to use Jinja2 templates. 2016-05-09 09:55:18 -07:00
subscriptions.html Convert Zulip to use Jinja2 templates. 2016-05-09 09:55:18 -07:00
tos_accept_body.txt Convert Zulip to use Jinja2 templates. 2016-05-09 09:55:18 -07:00
tutorial_finale.html Convert Zulip to use Jinja2 templates. 2016-05-09 09:55:18 -07:00
unsubscribe_link_error.html Convert Zulip to use Jinja2 templates. 2016-05-09 09:55:18 -07:00
unsubscribe_success.html Convert Zulip to use Jinja2 templates. 2016-05-09 09:55:18 -07:00