pypi django-components 0.96

latest releases: 0.102, 0.101, 0.100...
2 months ago

What's Changed

Feat

  • Run-time type validation for Python 3.11+ - If the Component class is typed, e.g. Component[Args, Kwargs, ...], the args, kwargs, slots, and data are validated against the given types. (See Runtime input validation with types) (#629)
  • Render hooks - Set on_render_before and on_render_after methods on Component to intercept or modify the template or context before rendering, or the rendered result afterwards. (See Component hooks) (#631)
  • component_vars.is_filled context variable can be accessed from within on_render_before and on_render_after hooks as self.is_filled.my_slot (#632)

Fix

Full Changelog: 0.95...0.96

Don't miss a new django-components release

NewReleases is sending notifications on new releases.