- Self-closing
dj-block
tag;<dj-block name='content' />
would translate to{% block content %}{% endblock content %}
. - Handle template includes that begin with an underscore;
<dj-partial />
would translate to, in order, eitherpartial.html
or_partial.html
depending on which template file was found.
- Use the start tag's
name
fordj-block
end tag if possible.
- Add (beta) named slots implementation. Enable with
ANGLES={"enable_slots": True}
in settings. - Fix: End wrapping tag was sometimes incorrect for some includes.
- Create tag mappers once and cache it.
- Add integration with
django-bird
.
Breaking changes
- Dropped support for Python 3.8.
- Add support for the following attributes and tags for better HTML lintability:
template
attribute forinclude
name
attribute forblock
parent
attribute forextends
href
attribute forcss
src
attribute forimage
- Remove
uv.lock
from build.
- Raise more explicit exceptions in some edge cases.
- Re-write all documentation and add missing docstrings.
- Add
dj-image
anddj-css
which automatically uses the static template tag.
- Raise
InvalidEndTag
if a tag is not closed properly. - Fix: lots of edge-cases.
Breaking changes
- Pass
Tag
object to mapper functions instead of arguments to better encapsulate functionality.
- Wrap all includes in a custom element for easier debugging and targeted CSS styling.
- Support ":" to append additional identifier to the custom wrapping element.
- Fix: support "shadow" being in the template name.
- Add
initial_tag_regex
setting. - Add
lower_case_tag
setting. - Add
mappers
setting.
Breaking changes
- Removed default support for starting tags with a
$
, however the same functionality can be configured in settings.
- Fix
csrf-input
.
- Initial release.