DJHTML
Finally! An elegant Django template indenter without any dependencies!
Installation
First, add the following to your .pre-commit-config.yaml:
repos:
- repo: https://github.com/rtts/djhtml
rev: main
hooks:
- id: djhtml
Then run the following command:
$ pre-commit autoupdate
Results
Before:
{% block extrahead %}
<script>
function f() {
return 42;
}
</script>
{% endblock %}
After:
{% block extrahead %}
<script>
function f() {
return 42;
}
</script>
{% endblock %}
Metadata
Release files for djhtml 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| djhtml-0.0.1.tar.gz | 3.1 kB | Details |
Release files / djhtml-0.0.1.tar.gz
| Download URL | djhtml-0.0.1.tar.gz |
|---|---|
| Size | 3.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
43846ef65aab0aa236e017b1fcef5d0689270e06c0a80ef99c32f2a424800749
|
|
BLAKE2b-256 checksum How to use checksums |
34c083f55401c77520411bf2337469ed073f5640ff831d6ef6168b4cd1c2dcbf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.4.2 requests/2.25.1 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.9.1+
|