v0.118ยค
Featยค
- Add support for
context_processors
andRenderContext
inside 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 useRenderContext
instead ofContext
. Thus the context processors will be applied to the context. -
NOTE: When you pass in both
request
andcontext
toComponent.render()
, andcontext
is already an instance ofContext
, therequest
kwarg will be ignored.