djlint 1.44.1 → 1.45.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +6 -6
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -23,9 +23,9 @@
23
23
 
24
24
  ## 🤔 For What?
25
25
 
26
- Every language in your stack has a formatter and a linter. HTML templates are the exception. Generic HTML tools can't parse `{% %}` and `{{ }}`, and template engines don't care what the markup around them looks like. Templates end up in a tooling blind spot: drifting indentation, mismatched tags and inconsistent spacing that survive every code review.
26
+ Every language in your stack has a formatter and a linter. HTML templates are the exception. Generic HTML tools can't parse `{% %}` and `{{ }}`, and template engines don't care what the markup around them looks like. So indentation drifts, tags go unclosed and spacing goes wherever, and none of it gets caught in review.
27
27
 
28
- djLint covers that blind spot. It understands HTML _and_ the template syntax inside it, with profiles for Django, Jinja, Twig, Nunjucks, Handlebars, Liquid, Go templates and more.
28
+ djLint reads HTML _and_ the template syntax inside it, with profiles for Django, Jinja, Twig, Nunjucks, Handlebars, Liquid, Go templates and more.
29
29
 
30
30
  Take a template only its author could love:
31
31
 
@@ -78,9 +78,9 @@ One `djlint --reformat --single-attribute-per-line` later:
78
78
 
79
79
  One command rebuilt the indentation, fixed the tag case, split the long tag into one attribute per line, normalized the template tags and collapsed stray blank lines.
80
80
 
81
- And the linter catches what formatting can't fix: orphan tags, missing `alt` attributes, hard-coded URLs and dozens of other checks.
81
+ The linter catches what formatting can't fix: orphan tags, missing `alt` attributes, hard-coded URLs and dozens of other checks.
82
82
 
83
- **[Try it on your own templates in the online playground](https://djlint.com/demo/)**
83
+ You can [try it on your own templates in the online playground](https://djlint.com/demo/).
84
84
 
85
85
  ## ✨ How?
86
86
 
@@ -143,7 +143,7 @@ Or use `pre-commit` to reformat, then lint!
143
143
  ```yaml
144
144
  repos:
145
145
  - repo: https://github.com/djlint/djLint
146
- rev: v1.42.1 # use latest version instead
146
+ rev: v1.45.0 # use the latest version instead
147
147
  hooks:
148
148
  - id: djlint-reformat
149
149
  - id: djlint
@@ -189,7 +189,7 @@ uv sync
189
189
  uv run pytest
190
190
  ```
191
191
 
192
- ## 🏃 Other Tools Of Note
192
+ ## 🏃 Other tools of note
193
193
 
194
194
  - [djade](https://github.com/adamchainz/djade) A fast Django template formatter that formats template syntax whilst leaving HTML as-is, and applies fixes for older Django versions.
195
195
  - [djangofmt](https://github.com/UnknownPlatypus/djangofmt) A fast, HTML-aware Django/Jinja template formatter written in Rust that formats HTML and template syntax together.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "djlint",
3
- "version": "1.44.1",
3
+ "version": "1.45.0",
4
4
  "description": "HTML Template Linter and Formatter",
5
5
  "keywords": [
6
6
  "html template linter",
@@ -45,7 +45,7 @@
45
45
  },
46
46
  "files": [],
47
47
  "scripts": {
48
- "postinstall": "python3 -m pip install --upgrade djlint==1.44.1"
48
+ "postinstall": "python3 -m pip install --upgrade djlint==1.45.0"
49
49
  },
50
50
  "devDependencies": {
51
51
  "@ianvs/prettier-plugin-sort-imports": "4.7.1",