# djLint **Repository Path**: mirrors_matthiask/djLint ## Basic Information - **Project Name**: djLint - **Description**: HTML Template Linter and Formatter. Use with Django, Jinja, Nunjucks and Handlebars templates. - **Primary Language**: Unknown - **License**: GPL-3.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-10-22 - **Last Updated**: 2026-03-22 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README  Find common formatting issues and *reformat* HTML templates. ***[Django](https://django.readthedocs.io/en/stable/ref/templates/language.html) · [Jinja](https://jinja2docs.readthedocs.io/en/stable/) · [Nunjucks](https://mozilla.github.io/nunjucks/) · [Handlebars](https://handlebarsjs.com)*** Ps, ``--check`` it out on other templates as well! [](https://codecov.io/gh/Riverside-Healthcare/djlint) [](https://github.com/Riverside-Healthcare/djlint/actions/workflows/test.yml) [](https://www.codacy.com/gh/Riverside-Healthcare/djlint/dashboard?utm_source=github.com&utm_medium=referral&utm_content=Riverside-Healthcare/djlint&utm_campaign=Badge_Grade) [](https://codeclimate.com/github/Riverside-Healthcare/djlint/maintainability) [](https://pepy.tech/project/djlint)[](https://discord.gg/taghAqebzU) ## Documentation Read the [documentation](https://djlint.com) ## Installation and Usage **djLint** can be installed with `pip install djlint`, and is easy to run: ```sh # to lint a directory djlint /path # to lint a directory with custom extension djlint /path -e html.dj # to check formatting on a file djlint /path/file.html.j2 --check # to reformt a directory without printing the file diff djlint /path --reformat --quiet # using stdin echo "
" | djlint - ``` ## Show your format Add a badge to your projects ```readme.md```: ```md [](https://github.com/Riverside-Healthcare/djlint) ``` Add a badge to your ```readme.rst```: ```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 Send a pr with a new feature, or checkout the [issue](https://github.com/Riverside-Healthcare/djlint/issues) list and help where you can.