github EmilStenstrom/django-components 0.90

latest releases: 0.101, 0.100, 0.97...
one month ago

What's Changed

Feat

  • All tags (component, slot, fill, ...) now support "self-closing" or "inline" form, where you can omit the closing tag:

    {# Before #}
    {% component "button" %}{% endcomponent %}
    {# After #}
    {% component "button" / %}
  • All tags now support the "dictionary key" or "aggregate" syntax (kwarg:key=val):

    {% component "button" attrs:class="hidden" %}
  • You can change how the components are written in the template with TagFormatter.

    The default is django_components.component_formatter:

    {% component "button" href="..." disabled %}
        Click me!
    {% endcomponent %}

    While django_components.shorthand_component_formatter allows you to write components like so:

    {% button href="..." disabled %}
        Click me!
    {% endbutton %}
    
    

Full Changelog: 0.89...0.90

Don't miss a new django-components release

NewReleases is sending notifications on new releases.