Announcing DjHTML: A Django template indender

This page summarizes the projects mentioned and recommended in the original post on /r/django

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • djhtml

    Django/Jinja template indenter

  • Update: the latest version of DjHTML now officially supports Jinja2!

  • web-mode

    web template editing mode for emacs

  • 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.

  • 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.

    WorkOS logo
  • pre-commit

    A framework for managing and maintaining multi-language pre-commit hooks.

  • 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:

  • tidy_ex

    Elixir binding to the granddaddy of HTML tools

  • 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.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts