# djhtml を Homebrew, Nix でインストール

djhtml のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

## インストール

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

追加のインストールコマンド:

### macOS

- Homebrew (100%):

```sh
brew install djhtml
```

  証拠: local Homebrew formula metadata

### Linux

- Nix (92%):

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

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

## パッケージ情報

- **パッケージキー:** brew:djhtml
- **パッケージマネージャ:** Homebrew
- **パッケージマネージャページ:** <https://formulae.brew.sh/formula/djhtml>
- **バージョン:** 3.0.11
- **ソース概要:** Django/Jinja template indenter
- **ホームページ:** <https://github.com/rtts/djhtml>
- **リポジトリ:** <https://github.com/rtts/djhtml>
- **ライセンス:** GPL-3.0-or-later
- **ソースアーカイブ:** <https://files.pythonhosted.org/packages/22/57/5771714b5961b7ee275a5696cabc3bd8c4a602d7cca103a44016109509fd/djhtml-3.0.11.tar.gz>
- **生成日時:** 2026-08-04T22:13:35+00:00

## 実行可能ファイル

- djcss (cli)
- djhtml (cli)
- djjs (cli)
- djtxt (cli)
- djcss (エイリアス)
- djhtml (エイリアス)
- djjs (エイリアス)
- djtxt (エイリアス)

## 依存関係

- python@3.14

## インストール挙動

- post-install フック: 未定義
- Bottle: 利用可能 対象 all

## バージョンと鮮度

- ページ生成日: 2026-08-04
- マネージャ版: 3.0.11
- ローカルデータ: OK
- 上流リポジトリ: https://github.com/rtts/djhtml
- 情報: No package-manager update timestamp was available.
- 情報: No cached GitHub release or tag data was available.
## プロジェクトの歴史と使われ方

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.

### プロジェクトの歴史

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.

### 採用の歴史

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.

### 使われ方

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.

### パッケージ好きにとっての重要性

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.

### タイムライン

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

### ソース

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


## セキュリティノート

narrow executable package without higher-risk signals.

- **Geiger リスク:** グリーン / 低
- narrow executable package without higher-risk signals

## ソースデータベース詳細

- **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

## 他のパッケージマネージャ記録

- 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


## 関連リンク

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


## ソース

- 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
