Djade: a template formatter

I’m two projects into using djade and I think it’s great. I have told a few people that it’s “Black for Django templates” but it is not “Black for HTML” which I think frames it in the right light in case people are expecting too much.

I like >90% of what it’s doing, which is similar to how I felt when Black came out.

Those nitpicks:

  • I prefer endblock never drop the variable name even if they are on the same line. (I do subblocks sometimes and this already annoyed me.)
  • I prefer load lines remain on separate lines. This makes diffs more readable. (Yes, I prefer this with my import-statement too because I spend a lot of time reading pull requests)

All-in-all, I think it’s a very promising tool. Nice work!

2 Likes