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
andon_render_after
methods onComponent
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 withinon_render_before
andon_render_after
hooks asself.is_filled.my_slot
(#632)
Fix
- Fix docs action by @dalito in #633
- fix: populate RequestContext with context processors by @JuroOravec in #643
Full Changelog: 0.95...0.96