v0.118 (2024-12-10)ยค
__
Featยค
- Add support for
context_processorsandRenderContextinside component templates
Component.render() and Component.render_to_response() now accept an extra kwarg request.
```py
def my_view(request)
return MyTable.render_to_response(
request=request
)
```
-
When you pass in
request, the component will useRenderContextinstead ofContext. Thus the context processors will be applied to the context. -
NOTE: When you pass in both
requestandcontexttoComponent.render(), andcontextis already an instance ofContext, therequestkwarg will be ignored.