- Fixes a regression in v0.8 where a
Context
could not be re-used. Contributed by @evanbrumley. (#25)
render_block_to_string
now forwards theContext
passed ascontext
parameter. Contributed by @bblanchon. (#21)- Drop support for Python 3.5, officially support Python 3.9. (#22)
- Drop support for Django < 2.2. (#18)
- Officially support Django 3.0, 3.1. (#18, #20)
- Drop support for Python 2.7. (#19)
- Officially support Python 3.8. (#18)
- Supports Django 1.11, Django 2.1, and Django 2.2. (#9, #11, #17)
- Supports Python 2.7, 3.5, 3.6, and 3.7. (#9, #17)
render_block_to_string
now optionally accepts arequest
parameter. If given, aRequestContext
instead of aContext
is used when rendering with the Django templating engine. Contributed by @vintage. (#15)- Fix rendering of README on PyPI. Contributed by @mixxorz. (#10)
- Fixes a major issue with inheriting templates and rendering a block found in the parent template, but overwriting part of it in the child template. (#8)
- Initial support for using the Jinja2 templating engine. See README for caveats. (#3)
- Support Django 1.10. (#5)
- Support Python 3. (#6)
- Refactoring to make more generic (for potentially supporting multiple templating engines).
- Largely rewritten.
- Updated to support modern Django (1.8, 1.9):
- Guards against different template backends.
- Uses internal APIs for each node.
- Removed
context_instance
parameter. - Support for calling
{{ block.super }}
.
- Updated per comment 3466 on Django Snippet 942 by eugenyboger to fix an issue with nested extends. The specific bug was not reproducible, but the additional code shouldn't hurt.
- Updated per comment 3237 on Django Snippet 942 by chadselph to remove a pointless render. The specific bug was not reproducible, but the removed code was extraneous.
- Updated version from Django Snippet 942 by zbyte64.
- Improves include:
- Simpler/better handling of "extends" block tag
- Searches If/Else blocks
- Less code
- Allow list of templates to be passed which is closer to the behavior of render_to_response
- Initial version from Django Snippet 769 by sciyoshi.
- Supports Django 0.96.