1.36.4 • Published 7 months ago

djlint v1.36.4

Weekly downloads
-
License
GPL-3.0-or-later
Repository
github
Last release
7 months ago

🤔 For What?

Once upon a time all the other programming languages had a formatter and linter. Css, javascript, python, the c suite, typescript, ruby, php, go, swift, and you know the others. The cool kids on the block.

HTML templates were left out there on their own, in the cold, unformatted and unlinted :( The dirty corner in your repository. Something had to change.

djLint is a community build project to and add consistency to html templates.

✨ How?

Grab it with pip

pip install djlint

Or with the npm experimental install - Note, this requires python and pip to be on your system path.

npm i djlint

Lint your project

djlint . --extension=html.j2 --lint

Check your format

djlint . --extension=html.j2 --check

Fix my format!

djlint . --extension=html.j2 --reformat

💙 Like it?

Add a badge to your projects readme.md:

[![Code style: djlint](https://img.shields.io/badge/html%20style-djlint-blue.svg)](https://www.djlint.com)

Add a badge to your readme.rst:

.. image:: https://img.shields.io/badge/html%20style-djlint-blue.svg
   :target: https://www.djlint.com

Looks like this:

djLint

🛠️ Can I help?

Yes!

Would you like to add a rule to the linter? Take a look at the linter docs and source code

Are you a regex pro? Benchmark and submit a pr with improved regex for the linter rules

⚠️ Help Needed! ⚠️ Good with python? djLint was an experimental project and is catching on with other devs. Help out with a rewrite of the formatter to improve speed and html style for edge cases. Contribute on the 2.0 branch

🏃 Other Tools Of Note

  • DjHTML A pure-Python Django/Jinja template indenter without dependencies.
  • HTMLHint Static code analysis tool you need for your HTML
  • curlylint Experimental HTML templates linting for Jinja, Nunjucks, Django templates, Twig, Liquid
1.36.4

7 months ago

1.36.2

7 months ago

1.36.3

7 months ago

1.36.0

8 months ago

1.36.1

8 months ago

1.35.3

8 months ago

1.35.4

8 months ago

1.35.2

10 months ago

1.34.2

10 months ago

1.34.1

2 years ago

1.32.0

2 years ago

1.32.1

2 years ago

1.34.0

2 years ago

1.33.0

2 years ago

1.31.1

2 years ago

1.31.0

2 years ago

1.29.0

2 years ago

1.30.2

2 years ago

1.30.0

2 years ago

1.30.1

2 years ago

1.28.0

2 years ago

1.25.0

2 years ago

1.23.2

2 years ago

1.25.1

2 years ago

1.23.3

2 years ago

1.23.1

2 years ago

1.27.2

2 years ago

1.27.0

2 years ago

1.27.1

2 years ago

1.26.0

2 years ago

1.24.0

2 years ago

1.19.17

2 years ago

1.21.0

2 years ago

1.23.0

2 years ago

1.22.0

2 years ago

1.20.0

2 years ago

1.19.16

2 years ago

1.19.15

2 years ago

1.19.14

2 years ago

1.19.12

2 years ago

1.19.13

2 years ago

1.19.10

3 years ago

1.19.11

3 years ago

1.19.8

3 years ago

1.19.9

3 years ago

1.19.0

3 years ago

1.19.4

3 years ago

1.19.3

3 years ago

1.19.2

3 years ago

1.19.1

3 years ago

1.19.7

3 years ago

1.19.6

3 years ago

1.19.5

3 years ago

1.18.0

3 years ago

1.17.3

3 years ago

1.15.0

3 years ago

1.14.1

3 years ago

1.12.3

3 years ago

1.14.0

3 years ago

1.12.2

3 years ago

1.13.0

3 years ago

1.17.2

3 years ago

1.17.1

3 years ago

1.17.0

3 years ago

1.16.0

3 years ago

1.14.2

3 years ago

1.12.1

3 years ago

1.12.0

3 years ago

1.11.1

3 years ago

1.9.1

3 years ago

1.7.3

3 years ago

1.9.0

3 years ago

1.8.1

3 years ago

1.7.2

3 years ago

1.8.0

3 years ago

1.7.1

3 years ago

1.7.0

3 years ago

1.6.0

3 years ago

1.9.5

3 years ago

1.9.4

3 years ago

1.9.3

3 years ago

1.9.2

3 years ago

1.7.4

3 years ago

1.11.0

3 years ago

1.10.0

3 years ago

0.0.1-beta1.0

3 years ago

1.0.0-beta1

3 years ago