Django Template Linter
Project description
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!
Changelog
0.0.8
Added rules.
0.0.1
Initial release.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file djlint-0.1.5.tar.gz.
File metadata
- Download URL: djlint-0.1.5.tar.gz
- Upload date:
- Size: 372.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3025b7d1b24668c6448d548100acaa3719019467d2699477037bcdd785e632f1
|
|
| MD5 |
3e8d8ad92c59cbbb45d9f3f1c72d28bb
|
|
| BLAKE2b-256 |
c74abc4daa5c80249fbf910dd79076f56300a62191f0f2858eb18a8b9ee1b206
|
File details
Details for the file djlint-0.1.5-py3-none-any.whl.
File metadata
- Download URL: djlint-0.1.5-py3-none-any.whl
- Upload date:
- Size: 25.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0b81bfa0b6cd9202350a4b6bcefc907318f435e2641b2a48ec5a2bd86ae3a6da
|
|
| MD5 |
db82a82db622f903dc292ce56b071d87
|
|
| BLAKE2b-256 |
ff164bd26a6a0f18f70e2de155c7139fc33d6fb20b07fbcb267ba4df6909ccd0
|