# fxbois/web-mode

web template editing mode for emacs

Repository: https://github.com/fxbois/web-mode
Canonical: https://ross.abutalabs.com/products/web-mode
Homepage: https://web-mode.org
Language: Emacs Lisp
License: GPL-3.0
License Family: copyleft
Topics: emacs, emacs-lisp, templates, php, jsx, melpa, html, css, javascript, jinja2, jsp, twig, django, erb-template, template-engine
Last push: 2026-08-24T11:35:46+00:00

## Health v2 (maintenance only)
Score: 67/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 8, longevity 100
- inputs: {"age_days": 5190, "days_push": 9, "days_rel": 659, "gap_med": null, "n_releases_24m": 1}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1690, forks 259 (observed 2026-08-28T04:05:22.545569+00:00)

## What it is
web-mode.el is an Emacs major mode for editing web templates—HTML files embedding CSS, JavaScript, and server/client-side template blocks. It supports dozens of template engines including PHP, Django, Jinja2, Twig, ERB, Blade, and React/JSX.

## Use cases
- edit Django or Jinja2 templates in Emacs with proper indentation
- syntax highlighting for PHP embedded in HTML files
- edit React JSX files in Emacs
- navigate and fold HTML tags and template control blocks
- auto-close and auto-pair HTML tags and template delimiters
- edit ERB or Blade templates with engine-aware snippets

## When to choose
- you use Emacs and edit mixed HTML/template files
- you need one mode that handles many template engines
- you want context-aware indentation across HTML, CSS, JS, and template code

## When to avoid
- you use Vim, VS Code, or another editor
- you only edit plain HTML or pure JavaScript files
- you need an IDE with LSP-driven refactoring rather than an editing mode

## Facets
- artifact type: plugin
- maturity: stable
- function: editor, templating
- domain: web-development, text-editors, developer-tools
- platform: editor-plugin, cross-platform
- tags: emacs-lisp, major-mode, web-templates, jsx, melpa, template-engines, syntax-highlighting, emacs

## Member repositories
- fxbois/web-mode (main) score 67

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:22.545569+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:38:21.504605+00:00, confidence not recorded.
  - readme: https://github.com/fxbois/web-mode (fetched 2026-08-28T04:05:22.545569+00:00, sha 9fd54f02e769)
  - homepage: https://web-mode.org (fetched 2026-08-29T11:13:19.843711+00:00, sha d338a43b30e8)
- Data as of 2026-08-30T08:39:29.467469+00:00.
