github EmilStenstrom/django-components 0.93

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

What's Changed

Feat

  • Spread operator ...dict inside template tags. See Spread operator) (#596)
     {% component "card" ...card_props / %}
  • Use template tags inside string literals in component inputs. See Use template tags inside component inputs) (#605)
     {% component "card" text="Hello {{ person.name }}" / %}
  • Dynamic slots, fills and provides - The name argument for these can now be a variable, a template expression, or via spread operator (#609)
     {% component "table" %}
     	{% fill "header-{{ current_column }}" %}
     		<b>
     			{{ current_column }}
     		</b>
     	{% endfill %}
     {% endcomponent %}
  • Component library authors can now configure CONTEXT_BEHAVIOR and TAG_FORMATTER settings independently from user settings (#615)

Fix

Refactor

  • refactor: move kwargs resolution to render-time + cleanup by @JuroOravec in #594

Docs

New Contributors

Full Changelog: 0.92...0.93

Don't miss a new django-components release

NewReleases is sending notifications on new releases.