NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
PyPI, #2008 most downloaded on PyPI
HTML template linter and formatter (Django, Jinja, Twig, Nunjucks, Handlebars, Mustache, Liquid, Go templates, Angular, Tera, Askama, Mako)
Latest stable
1.50.4
Last release 7 days ago
15 Nov 2026
Ships fairly regularly
a new release about every 1 weeks
Nearly every release is documented
notes for 60 of the last 60 stable releases
1 version withdrawn
withdrawn after publishing
5 years old
238 releases · first in 2021
Drag across the ruler to compare, or tap a release to open it.
Match exclude paths on path boundaries. #1028
Add support for .djlint.toml project and global config files. #1181
.djlint.toml project and global config files. #1181max_line_length. #637 #2041Your coding agent can read these notes before it upgrades. Set up the MCP server →
.djlint.toml project and global config files.max_line_length.This release was not published on npm, as I am waiting for the owner to set up trusted publishing.
This release was not published on npm, as I am waiting for the owner to set up trusted publishing.
--format-attribute-js-json for formatting JavaScript and JSON inside HTML attributes. It also supports format_attribute_js_json_pattern and format_attribute_js_json_min_props for tuning which attributes are formatted. Thanks, @oliverhaas.--github-output for GitHub Actions annotations. Thanks, @iloveitaly.ignore_blocks matching when ignored blocks are indented. Thanks, @tdryer.--exclude and --use-gitignore matching so path filters work consistently from nested directories. Thanks, @satya-waylit.href="/". Thanks, @SAY-5.{{#unless}} indentation. Thanks, @S1mplePixels./> appears inside an HTML attribute value. Thanks, @novucs.Fix specific mixture of quotes and escaped quotes (e.g. in a json string in an html attribute) breaks the html. Thanks, @oliverhaas.
This release reverts the following changes from the last release as they caused issues:
This release reverts the following changes from the last release as they caused issues:
Fix specific mixture of quotes and escaped quotes (e.g. in a json string in an html attribute) breaks the html. Thanks, @oliverhaas.
Fix:
Performance:
Improve performance by ~30%. Thanks, @oliverhaas.
Add support for djlint.toml config file. The format is identical to pyproject.toml, but it does not use [tool.djlint] table.
djlint.toml config file. The format is identical to pyproject.toml, but it does not use [tool.djlint] table.js_config instead of css_config.Compiled mypyc wheels are now also available, which improve performance by ~21% over Pure Python. They will be automatically installed by your package
Compiled mypyc wheels are now also available, which improve performance by ~21% over Pure Python. They will be automatically installed by your package manager when available for your platform. Pure Python wheel is still available.
Other changes have been made to improve performance, thanks to @JCWasmx86. See the commits for more details.
Formatting performance comparison with the previous version (tested on https://github.com/openedx/edx-platform with single thread):
| Version | Seconds |
|---|---|
| v1.35.3 | 20.39 |
| v1.35.4 pure Python | 14.39 |
| v1.35.4 compiled | 11.35 |
This release significantly improves performance, especially for large files and large projects.
This release significantly improves performance, especially for large files and large projects.
Formatting https://github.com/openedx/edx-platform took 87 seconds in the previous version, now it takes only 4 seconds (>2000% speedup)! Tested on a 32-core computer.
Unpin dependencies upper bounds.
- Fix npm publishing
Unpin dependencies upper bounds.
max attribute length with longer regex custom html tags
formatter: Avoid rewriting the file if it has not been changed
configuration: Fix formatting, unused import and forgotten print
formatter: fixed extra breaks added around html tags inside template tags (6091ffb), closes #742
formatter: reverted chained function formatting (2ba6e3b), closes #720 #704
formatter: fixed formatting on chained function (7c2756d), closes #704
formatter: fixed formatter formatting ignored code (5c75d87), closes #655
formatter: fixed line_break_after_multiline_tag to force break in all cases (3b37ec8), closes #680
line_break_after_multiline_tag to force break in all cases (3b37ec8), closes #680formatter: added quotes to json keys, added option to disable set/function formatting (6f7df03), closes #682
formatter: fixed endset indent level (cdebe42), closes #670
formatter: fix cases where ignore was still formatting set and function code (ab878ea), closes #659
formatter: fixed an edge case wild regex grab (0d57e75), closes #640
linter: fixed overly greedy H037, improved linter tests (66c9187), closes #631
blocktrans: fixes whitespace issues on blocktrans, allows indenting on blocktrans trimmed (249c8e8), closes #623
js indent: fixed an issue where literal strings were double indented (b1e8ab2), closes #614
formatter: added option to prevent contents of some template tags from indenting
formatter: fixed speed on formatter (57cf98d), closes #601
blocktrans: fix issue with back to back blocktrans formatting (703e176), closes #600
yaml: fixed conflict with yaml and preserve_blank_lines option (b89fb07), closes #596
formatter: will now attempt to fix case on known html tags by default, can be disabled (fb1f6eb), closes #589
whitespace: improved whitespace handling on tag closing bracket (53d9b29), closes #582
linter: added rule H036. Avoid use of tags. Disabled by default (cefa840), closes #571
linter: added option to disable rules by default. Split H017 and disabled by default (2dd3675), closes #372
blocktrans: allowed closing transblocks to be indented if they have a leading space
ignored rules: prevent ignoring a single rule from ignoring multiple (2c9caaf), closes #560
formatter: fixed template tag formatting with trailing parenthesis (24d0b82), closes #554
config: added error message print when config loading fails (e21fa29), closes #531
handlebars each: fixed bug in handlebars tags w/ trailing pipe (9d42baf), closes #529
formatter: preserve windows line endings (7c0a272), closes #502
linter: fixes false positive on D018 (ebd099f), closes #501
check: fixed issue where check was reformatting files that contained a hyphen in the name (9812f60), closes #494
stdin --check: stdin with the --check flag should return a formatted output (57e1eec), closes #486
attributes: fixed outer quotes being stripped from attribute values (dff02dc), closes #471
formatter: fixed a few broken alpinejs attributes (6c2d843), closes #448
css/js: fixed extra blank lines being appended to blank lines in css/js formatter (10e593f), closes #451
linter: make attribute pattern on H025 more accepting. Prevent false positive (1bd0bf7), closes #447
attributes: fixed poor django attribute parsing (bd90f08), closes #427 #438
formatter: fixed poor formatting on long inline blocks (62a8879), closes #432
windows+py3.9: fixed an issue on windows with py3.9 and stdin
formatter: fixed indent on inline block followed by inline template block (4a0bee6), closes #425
formatter: fixed formatting on nested inline comments (a86df43), closes #423
quiet: updated output of the --quiet flag to reduce unneeded verbose stuff
One column per quarter.