github EmilStenstrom/django-components 0.92

latest releases: 0.101, 0.100, 0.97...
27 days ago

What's Changed

🚨 Breaking changes 🚨

  • Component class is no longer a subclass of View. To configure the View class, set the Component.View nested class. HTTP methods like get or post can still be defined directly on Component class, and Component.as_view() internally calls Component.View.as_view(). (See Modifying the View class)

Feat

  • The inputs (args, kwargs, slots, context, ...) that you pass to Component.render() can be accessed from within get_context_data, get_template_string and get_template_name via self.input. (See Accessing data passed to the component)

  • Typing: Component class supports generics that specify types for Component.render (See Adding type hints with Generics)

Full Changelog: 0.91...0.92

Don't miss a new django-components release

NewReleases is sending notifications on new releases.