mirror of
https://github.com/Hopiu/djLint.git
synced 2026-03-16 21:40:24 +00:00
✨ HTML Template Linter and Formatter. Django - Jinja - Nunjucks - Handlebars - GoLang
| .github/workflows | ||
| docs | ||
| src/djlint | ||
| tests | ||
| .coveragerc | ||
| .gitignore | ||
| .pre-commit-config.yaml | ||
| CHANGELOG.md | ||
| LICENSE | ||
| MANIFEST.in | ||
| pyproject.toml | ||
| README.md | ||
| setup.cfg | ||
| setup.py | ||
| tox.ini | ||
Simple html template linter and reformatter to find common formatting issues. djLint is intended as a django template linter and django template formatter.
Ps, --check it out on Jinja and Handlebar templates as well!
Documentation
Read the documentation
Installation and Usage
djLint can be installed with pip install djlint, and is easy to run:
# 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
Show your format
Add a badge to your projects readme.md:
[](https://github.com/Riverside-Healthcare/djlint)
Add a badge to your readme.rst:
.. image:: https://img.shields.io/badge/html%20style-djlint-blue.svg
:target: https://github.com/Riverside-Healthcare/djlint
Looks like this:
Contributing - Please Help!
Checkout the issue list and help where you can!