# antlr/stringtemplate4

StringTemplate 4

Repository: https://github.com/antlr/stringtemplate4
Canonical: https://ross.abutalabs.com/products/stringtemplate4
Homepage: http://www.stringtemplate.org
Language: Java
License: NOASSERTION
License Family: other
Last push: 2025-05-14T20:52:32+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 21, release rhythm 8, longevity 100
- inputs: {"age_days": 6055, "days_push": 476, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1035, forks 233 (observed 2026-08-28T04:03:19.070382+00:00)

## What it is
StringTemplate 4 (ST) is a Java template engine for generating source code, web pages, emails, or any other formatted text output, with ports for other languages. It strictly enforces model-view separation and is particularly well suited to multi-targeted code generators, site skins, and internationalization/localization.

## Use cases
- generate source code from templates in a code generator
- render web pages or emails from templates
- build multi-site skins with shared templates
- internationalize and localize formatted text output
- power the output layer of an ANTLR-based tool

## When to choose
- you need strict enforcement of model-view separation in templates
- you are building a multi-target code generator
- you want a mature, battle-tested Java template engine

## When to avoid
- you need a full-featured web templating layer with rich logic and helpers
- you want a template engine outside the JVM ecosystem without a port
- you need actively evolving features; development is slow and maintenance-focused

## Facets
- artifact type: library
- maturity: stable
- function: templating
- domain: web-development, developer-tools, documentation
- platform: jvm, cross-platform
- tags: template-engine, model-view-separation, code-generator, internationalization, antlr, code-generation

## Member repositories
- antlr/stringtemplate4 (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:19.070382+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-30T07:04:52.568410+00:00, confidence not recorded.
  - readme: https://github.com/antlr/stringtemplate4 (fetched 2026-08-28T04:03:19.070382+00:00, sha 132623f68b93)
  - homepage: http://www.stringtemplate.org (fetched 2026-08-29T13:05:35.467032+00:00, sha 0f9ea8e48ddd)
- Data as of 2026-08-30T08:39:29.467469+00:00.
