Our great sponsors
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
Update: the latest version of DjHTML now officially supports Jinja2!
Currently, DjHTML is able to parse DTL, HTML, CSS, Javascript and any combinations of these inside the same template. The indentation rules are similar to Emacs' web-mode.el but with better handling of some edge cases.
Over the past year I have fallen in love with Black and pre-commit to automatically format code upon each commit. However, I could not find any tool that would do the same for HTML files and so I decided to write one myself. Take for instance the following template:
Thanks! I wrote this tool for this exact purpose: prettifying Django templates. Together with curlylint (or even the original HTML Tidy) it's the perfect pre-commit pipeline to make sure all templates are always in perfect shape.