Skip to content

0.118

Compare
Choose a tag to compare
@JuroOravec JuroOravec released this 10 Dec 12:47
· 77 commits to master since this release
a565969

What's Changed

Feat

  • Add support for context_processors and RenderContext inside component templates (by @lhole in #817)

    Component.render() and Component.render_to_response() now accept an extra kwarg request.

    def my_view(request)
        return MyTable.render_to_response(
            request=request
        )
    • When you pass in request, the component will use RenderContext instead of Context.
      Thus the context processors will be applied to the context.

    • NOTE: When you pass in both request and context to Component.render(), and context is already an instance of Context, the request 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