Changelog¶
0.26.0¶
Add
get_template_loadersfor easierTEMPLATESconfiguration insettings.py.Add
django-viewcomponentintegration.Add
viewtemplate tag.Add support for calling models by app label, e.g.
{% model 'app_label.Model' %}.Skip over comment tags when parsing templates.
0.25.0¶
Add error boundaries.
Add
django-componentsintegration.Faster and more reliable replacement strategy.
Improve examples and documentation.
Fix bugs with slots.
Fix bugs with attributes.
0.24.0¶
Add support for Django 6.0 template partials.
0.23.0¶
Add support for inline template partials.
Add support for using named template partials.
0.22.0¶
Add integration with
django-template-partials.Add support for inline or expressions.
Add support for inline if expressions.
0.21.0¶
Add
no-wrapattribute to components.Add
classattribute to components.
0.20.0¶
Fix
django-birdintegration when using the default mapper. #16 from benbacardi.
0.19.0¶
Fix
delayinajax-form.Add
templatetemplate tag.Return a stringified result from
calltemplate tag.
Breaking changes¶
Remove automatically casting strings to
UUID,datetime,date, ortime. That can be done manually in the function if needed and it’s a little too magical.
0.18.0¶
Add
ajax-formcustom element.Add
formtag element.Add
RequestMethodMiddlewareandRequestAJAXMiddleware.
0.17.0¶
Add
dateformatfilter.
0.16.0¶
Add
dj-callanddj-modeltags.
0.15.0¶
Add
callandmodeltemplate tags.
0.14.1¶
Support conditional attributes on
djtags, e.g.dj-include.
0.14.0¶
Add support for
dj-if,dj-elif,dj-elseattributes.Add
initial_attribute_regexsetting.
0.13.1¶
Better handling of spaces and tabs in template tag arguments.
0.13.0¶
Handle newlines in template tag arguments.
0.12.0¶
Self-closing
dj-blocktag;<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.htmlor_partial.htmldepending on which template file was found.
0.11.0¶
Use the start tag’s
namefordj-blockend tag if possible.
0.10.0¶
0.9.0¶
Add (beta) named slots implementation. Enable with
ANGLES={"enable_slots": True}in settings.Fix: End wrapping tag was sometimes incorrect for some includes.
0.8.1¶
Create tag mappers once and cache it.
0.8.0¶
Add integration with
django-bird.
Breaking changes
Dropped support for Python 3.8.
0.7.0¶
Add support for the following attributes and tags for better HTML lintability:
templateattribute forincludenameattribute forblockparentattribute forextendshrefattribute forcsssrcattribute forimage
0.6.1¶
Remove
uv.lockfrom build.
0.6.0¶
Raise more explicit exceptions in some edge cases.
Re-write all documentation and add missing docstrings.
0.5.0¶
Add
dj-imageanddj-csswhich automatically uses the static template tag.
0.4.0¶
Raise
InvalidEndTagif a tag is not closed properly.Fix: lots of edge-cases.
Breaking changes
Pass
Tagobject to mapper functions instead of arguments to better encapsulate functionality.
0.3.0¶
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.
0.2.0¶
Add
initial_tag_regexsetting.Add
lower_case_tagsetting.Add
mapperssetting.
Breaking changes
Removed default support for starting tags with a
$, however the same functionality can be configured in settings.
0.1.1¶
Fix
csrf-input.
0.1.0¶
Initial release.