{"push_id":1101427574,"size":4,"distinct_size":4,"ref":"refs/heads/jinja2","head":"ea5feb2d290cbb8ce8ed915274a8e321040d20d3","before":"eb65a0358f6f06cf43a3e1aceec5a360c35991ae","commits":[{"sha":"d20791eb6a64d211dae7c50a4eaa816f0dc24940","author":{"email":"d0224c9164b19e926c250294e7a569c6d5ad5163@mit.edu","name":"Tim Abbott"},"message":"docs/new-feature-tutorial: Fix typos in templates path.","distinct":true,"url":"https://api.github.com/repos/timabbott/zulip/commits/d20791eb6a64d211dae7c50a4eaa816f0dc24940"},{"sha":"4c7b4fcea1ad2dd5beabd1ee5638b6e116358f13","author":{"email":"d0224c9164b19e926c250294e7a569c6d5ad5163@mit.edu","name":"Tim Abbott"},"message":"requirements: Downgrade Jinja2 and MarkupSafe to match Trusty apt.\n\nThe moto-based tests still pass with the older version, and this will\nsafe some trouble when we migrate Zulip to the Jinja2 templating system.","distinct":true,"url":"https://api.github.com/repos/timabbott/zulip/commits/4c7b4fcea1ad2dd5beabd1ee5638b6e116358f13"},{"sha":"61e6dd10e15884b3f564b4931c413a383139a878","author":{"email":"109d6becc68d773eb1778a830b79055ad56a4be9@gmail.com","name":"Umair Khan"},"message":"Use Jinja2 templates.\n\nChanges in templates:\n- Change `block.super` to `super()`.\n- Remove `load` tag because Jinja2 doesn't support it.\n- Use `minified_js()` instead of `{% minified_js %}`. The `safe` filter is\n  explicitly applied as well.\n- Use `compressed_css()` instead of `{% compressed_css %}`. The `safe` filter\n  is explicitly applied as well.\n- `forloop.first` -> `loop.first`.\n- Use `{{ csrf_input }}` instead of `{% csrf_tokesn %}`.\n- Use `{# ... #}` instead of `{% comment %}`.\n- Use `url()` instead of `{% url %}`.\n- Use `_()` instead of `{% trans %}` because in Jinja `trans` is a block tag.\n- Use `{% trans %}` instead of `{% blocktrans %}`.\n- Add check to `user_profile` for `undefined` in templates/zerver/base.html.\n\nChanges in tools:\n- Check for `trans` block in `check-templates` instead of `blocktrans`\n\nChanges in backend:\n- Create custom `render_to_response` function which takes `request` objects\n  instead of `RequestContext` object. There are two reasons:\n    1. `RequestContext` is not compatible with Jinja2\n    2. `RequestContext` in `render_to_response` is deprecated\n- Add Jinja2 related support files in zproject/jinja2 directory. It\n  includes a custom backend and a template renderer, compressors for js\n  and css and Jinja2 environment handler.\n- Enable `slugify` and `pluralize` filters in Jinja2 environment.\n\nFixes #620.","distinct":true,"url":"https://api.github.com/repos/timabbott/zulip/commits/61e6dd10e15884b3f564b4931c413a383139a878"},{"sha":"ea5feb2d290cbb8ce8ed915274a8e321040d20d3","author":{"email":"109d6becc68d773eb1778a830b79055ad56a4be9@gmail.com","name":"Umair Khan"},"message":"Add documentation on translation tags.","distinct":true,"url":"https://api.github.com/repos/timabbott/zulip/commits/ea5feb2d290cbb8ce8ed915274a8e321040d20d3"}]}