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/Riverside-Healthcare/djlint)
Add a badge to your projects readme.rst:
.. image:: https://img.shields.io/badge/html%20style-djLint-blue.svg
:target: https://github.com/Riverside-Healthcare/djlint

Looks like this:

https://github.com/Riverside-Healthcare/djlint

Contributing

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

# install poetry
curl -sSL https://install.python-poetry.org | python3 -

# install project deps
poetry install

# run tests
poetry run pytest tests
# or
poetry run tox -e test-fast
Edit this page Updated Nov 23, 2022