Skip to content

Commit f185da3

Browse files
committed
Add djhtml (https://github.com/rtts/djhtml), for auto-reformatting of the Django
templates via "djlint --profile django --reformat". It still has some bugs and issues, esp. on complex templates and with regards to whitespace after links, but those are manageable, and the benefits of having consistently-formatted templates IMO outweigh them. Commit ready for merge. - Legacy-Id: 19834
1 parent 6ca6c35 commit f185da3

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

requirements.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,4 +72,5 @@ Unidecode>=0.4.18,<1.2.0
7272
#wsgiref>=0.1.2
7373
xml2rfc>=2.35.0
7474
xym>=0.4.4,!=0.4.7,<1.0
75-
#zxcvbn-python>=4.4.14 # Not needed until we do back-end password entropy validation
75+
#zxcvbn-python>=4.4.14 # Not needed until we do back-end password entropy validation
76+
djhtml>=1.4.11 # To auto-indent templates via "djlint --profile django --reformat"

0 commit comments

Comments
 (0)