This long shows interesting changes that happen for each release of django-includecontents
.
- Fix a bug where the component context wasn't being set correctly, especially noticeable inside of a loop. (5)
- Allow attributes with dashes which don't have values. For example,
<include:foo x-data />
. (1)
- Update the template engine location so that it will be picked up as the standard Django engine when replaced.
- Fix some grammar.
- Add a note about how to workaround Prettier stripping AlpineJS'
x-data
quotes.
-
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", ... }, ]
- Add shorthand attribute syntax (
<include:foo {title}>
).
- Fix component context isolation.
- Allow self-closing tags. For example,
<include:foo />
. - Handle > inside
<include:
tags. - Allow kebab-case attributes. For example,
<include:foo x-data="bar" />
.
- Add a note about
pretier-plugin-jinja-template
. - Readme improvements.