What's Changed
Feat
-
Add support for
context_processors
andRenderContext
inside component templates (by @lhole in #817)Component.render()
andComponent.render_to_response()
now accept an extra kwargrequest
.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.
-
Refactor
- Fix sampleproject component-relative (#833)
Docs
- Fix link to license in README (#834)
New Contributors
Full Changelog: 0.117...0.118