Skip to content

Latest commit

 

History

History
88 lines (48 loc) · 2.06 KB

CHANGES.md

File metadata and controls

88 lines (48 loc) · 2.06 KB

Change Log

This long shows interesting changes that happen for each release of django-includecontents.

Version 1.2.1 (2024-11-19)

Bugfixes

  • Make csrf_token work from within components

Version 1.2 (2024-11-12)

Features

  • Added support for Django-style template variables in component attributes: title="{{ myTitle }}". The old style title={myTitle} is still supported but will be deprecated in a future version.

Bugfixes

  • Short-hand syntax props weren't being taken into account by the required attrs check.

Version 1.1.1 (2024-07-25)

Bugfixes

  • Fix a bug where the component context wasn't being set correctly, especially noticeable inside of a loop. (5)

Version 1.1 (2024-06-03)

Bugfixes

  • Allow attributes with dashes which don't have values. For example, <include:foo x-data />. (1)

Version 1.0 (2024-05-16)

Features

  • Update the template engine location so that it will be picked up as the standard Django engine when replaced.

Improved Documentation

  • Fix some grammar.
  • Add a note about how to workaround Prettier stripping AlpineJS' x-data quotes.

Deprecations and Removals

  • Since the template engine location has changed, any users of pre 1.0 versions will need to update their Django settings to point to the new location:

    TEMPLATES = [
        {
            "BACKEND": "includecontents.django.DjangoTemplates",
            ...
        },
    ]

Version 0.8 (2024-05-09)

Features

  • Add shorthand attribute syntax (<include:foo {title}>).

Bugfixes

  • Fix component context isolation.

Version 0.7 (2024-05-01)

Features

  • Allow self-closing tags. For example, <include:foo />.
  • Handle > inside <include: tags.
  • Allow kebab-case attributes. For example, <include:foo x-data="bar" />.

Improved Documentation

  • Add a note about pretier-plugin-jinja-template.
  • Readme improvements.