dj Lint

Lint & Format HTML Templates

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.
Welcome djLint, the free cleaning service for html templates!
And the html templates lived happily ever after.

find your favorite template language!

Watch it run!

Show your format!

Add a badge to your projects readme.md:
[![Code style: djLint](https://img.shields.io/badge/html%20style-djLint-blue.svg)](https://github.com/djlint/djlint)
Add a badge to your projects readme.rst:
.. image:: https://img.shields.io/badge/html%20style-djLint-blue.svg
      :target: https://github.com/djlint/djlint

Looks like this:

https://github.com/djlint/djlint

Contributing

Contributions are welcome. Send a pr with a new feature, or checkout the issue list and help where you can.

# install uv https://docs.astral.sh/uv/getting-started/installation/

# install project deps
uv sync

# run tests
uv run pytest
Edit this page Updated Oct 2, 2024