# djhtml mit Homebrew, Nix installieren

Prüfe Installationswege, Executables, Metadaten und Sicherheitshinweise für djhtml in AI-Agent-Workflows.

## Installation

```sh
sudo av install brew:djhtml
```

Weitere Installationsbefehle:

### macOS

- Homebrew (100%):

```sh
brew install djhtml
```

  Evidenz: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#djhtml
```

  Evidenz: nixpkgs package indexes: pkgs/by-name/dj/djhtml/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## Paketfakten

- **Paketschlüssel:** brew:djhtml
- **Paketmanager:** Homebrew
- **Paketmanager-Seite:** <https://formulae.brew.sh/formula/djhtml>
- **Version:** 3.0.11
- **Quellzusammenfassung:** Django/Jinja template indenter
- **Homepage:** <https://github.com/rtts/djhtml>
- **Repository:** <https://github.com/rtts/djhtml>
- **Lizenz:** GPL-3.0-or-later
- **Quellarchiv:** <https://files.pythonhosted.org/packages/22/57/5771714b5961b7ee275a5696cabc3bd8c4a602d7cca103a44016109509fd/djhtml-3.0.11.tar.gz>
- **Generiert:** 2026-08-04T22:13:35+00:00

## Executables

- djcss (cli)
- djhtml (cli)
- djjs (cli)
- djtxt (cli)
- djcss (Alias)
- djhtml (Alias)
- djjs (Alias)
- djtxt (Alias)

## Abhängigkeiten

- python@3.14

## Installationsverhalten

- Post-install-Hook: nicht definiert
- Bottle: verfügbar auf all

## Version und Aktualität

- Seite generiert: 2026-08-04
- Manager-Version: 3.0.11
- lokale Daten: OK
- Upstream-Repository: https://github.com/rtts/djhtml
- Info: No package-manager update timestamp was available.
- Info: No cached GitHub release or tag data was available.
## Projektgeschichte und Nutzung

DjHTML is a pure-Python indenter for Django and Jinja templates, with companion commands for CSS, JavaScript, and text-like template files. It intentionally calls itself an indenter rather than a formatter: it changes leading whitespace but does not restructure markup.

### Projektgeschichte

The official repository was created in May 2021 and describes DjHTML as a dependency-free template indenter. Its README positions the tool near formatters such as Black while making a narrower promise: fix indentation for already well-structured mixed HTML, CSS, JavaScript, Django, and Jinja templates.

DjHTML's design is conservative for template-heavy projects because it avoids inserting newlines or other non-whitespace characters. The same repository ships multiple entry points: `djhtml` for template files, `djcss` for style sections or CSS mode, `djjs` for script sections or JavaScript mode, and `djtxt` for text-oriented indentation.

### Adoptionsgeschichte

Adoption has been strongest in Python web projects that already use pre-commit. The README provides a `.pre-commit-config.yaml` example using the official repository as the hook source, which lets teams run DjHTML automatically without adding a broader HTML formatter to the application runtime.

Package-manager interest is modest but durable: the Homebrew package exposes the CLI tools for users who prefer system package managers, while the upstream project remains a small Python utility with regular 3.x releases.

### Wie es verwendet wird

Users run `djhtml template.html` or `djhtml .` to rewrite indentation, and use `--check` in automation when they want a nonzero status if files would change. The `fmt:off` and `fmt:on` markers, plus ignored pre/comment blocks, keep generated or intentionally odd sections out of the indenter.

### Warum Paket-Nerds sich dafür interessieren

DjHTML is package-nerd interesting because it occupies the narrow space between no formatter and a full syntax-changing HTML formatter. Its no-dependency Python implementation, pre-commit hook, and separate mode commands make it a small, easy-to-package tool for template repositories.

### Zeitleiste

- 2021-05-08: Official GitHub repository created.
- 2023-02: 3.0.x releases appear in official GitHub release metadata.
- 2026-03-26: 3.0.11 release published.

### Related projects

- Related template-formatting tools include djLint, djangofmt, Black for Python style culture, and pre-commit as the hook runner commonly used to apply DjHTML.

### Quellen

- <https://github.com/rtts/djhtml>
- <https://raw.githubusercontent.com/rtts/djhtml/main/README.md>
- <https://api.github.com/repos/rtts/djhtml>
- <https://api.github.com/repos/rtts/djhtml/releases?per_page=10>


## Sicherheitshinweise

narrow executable package without higher-risk signals.

- **Geiger-Risiko:** grün / niedrig
- narrow executable package without higher-risk signals

## Details aus der Quelldatenbank

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** djhtml
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

## Andere Paketmanager-Einträge

- Nix - djhtml: normalized package name match | nixpkgs package indexes: pkgs/by-name/dj/djhtml/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## Verwandte Links

- [Source-control packages](https://pkg.so/de/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://pkg.so/de/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/de/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://pkg.so/de/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [python@3.14](https://pkg.so/de/brew/python-3-14/) - Runtime dependency declared by Homebrew.
- [djlint](https://pkg.so/de/brew/djlint/) - Shares pkgdb curated category or tags: cli, developer-tools, django, formatter, html.
- [reorder-python-imports](https://pkg.so/de/brew/reorder-python-imports/) - Shares pkgdb curated category or tags: cli, code-formatting, developer-tools, pre-commit, python.
- [darker](https://pkg.so/de/brew/darker/) - Shares pkgdb curated category or tags: cli, code-formatting, developer-tools, formatter, python.
- [black](https://pkg.so/de/brew/black/) - Shares pkgdb curated category or tags: cli, developer-tools, formatter, pre-commit, python.
- [prettier](https://pkg.so/de/brew/prettier/) - Shares pkgdb curated category or tags: cli, code-formatting, developer-tools, formatter.
- [isort](https://pkg.so/de/brew/isort/) - Shares pkgdb curated category or tags: cli, developer-tools, formatter, pre-commit, python.
- [prettierd](https://pkg.so/de/brew/prettierd/) - Shares pkgdb curated category or tags: cli, code-formatting, developer-tools, formatter.
- [ktfmt](https://pkg.so/de/brew/ktfmt/) - Shares pkgdb curated category or tags: cli, code-formatting, developer-tools, formatter.
- [gersemi](https://pkg.so/de/brew/gersemi/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, code, commit, developer, developer-tools.

## Combined YAML source

View the package source record on GitHub. [combined/djhtml.yml](https://github.com/mxcl/pkgdb/blob/main/combined/djhtml.yml)


## Quellen

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
