# mustache/emacs architecture

> Architecture diagram of the GitHub repository mustache/emacs, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-05). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/mustache/emacs
- Repository: https://github.com/mustache/emacs

## Overview

This is a small Emacs major mode for editing Mustache templates, based on Google's tpl-mode. The README documents its installation and its support for lenient tag values and editing commands, but no source excerpts are available, so internal behavior and specific command relationships cannot be verified. The graph therefore shows only the documented editor capability.

Main entry points: [`mustache-mode.el`](https://github.com/mustache/emacs/blob/master/mustache-mode.el) (Mustache major mode)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_editing["Template editing"]
  node_mode["Mustache major mode<br/>[mustache-mode.el]"]
  node_tags["Lenient tag values<br/>[mustache-mode.el]"]
  node_commands["Editing commands<br/>[mustache-mode.el]"]
end

node_user(("Emacs user"))

node_user -->|"loads"| node_mode
node_mode -->|"supports"| node_tags
node_mode -->|"includes"| node_commands

click node_mode "https://github.com/mustache/emacs/blob/master/mustache-mode.el"
click node_tags "https://github.com/mustache/emacs/blob/master/mustache-mode.el"
click node_commands "https://github.com/mustache/emacs/blob/master/mustache-mode.el"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_mode,node_tags,node_commands,node_user toneBlue
```

## Components

### Template editing

- [Mustache major mode](https://github.com/mustache/emacs/blob/master/mustache-mode.el): `mustache-mode.el`
- [Lenient tag values](https://github.com/mustache/emacs/blob/master/mustache-mode.el): `mustache-mode.el`
- [Editing commands](https://github.com/mustache/emacs/blob/master/mustache-mode.el): `mustache-mode.el`

### Other components

- **Emacs user**

## Connections

- Emacs user → Mustache major mode: loads (evidence: `README.md`)
- Mustache major mode → Lenient tag values: supports (evidence: `README.md`)
- Mustache major mode → Editing commands: includes (evidence: `README.md`)
