# PebbleTemplates/pebble

Java Template Engine

Repository: https://github.com/PebbleTemplates/pebble
Canonical: https://ross.abutalabs.com/products/pebbletemplates-pebble
Homepage: https://pebbletemplates.io
Language: Java
License: BSD-3-Clause
License Family: permissive
Topics: java, java-template-engine
Last push: 2026-08-26T14:59:58+00:00

## Health v2 (maintenance only)
Score: 90/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 74, longevity 100
- inputs: {"age_days": 4998, "days_push": 7, "days_rel": 96, "gap_med": 55, "n_releases_24m": 6}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1194, forks 176 (observed 2026-08-28T04:03:56.667585+00:00)

## What it is
Pebble is a Java templating engine inspired by Twig (and similar to Jinja), featuring template inheritance, a rich set of built-in tags and filters, and an extensible language. It ships with built-in autoescaping for security, integrated internationalization support, and Spring Boot starter integrations.

## Use cases
- render html templates in a java web application
- use twig or jinja style templating on the jvm
- share a common layout across pages with template inheritance
- integrate a template engine with spring boot or spring mvc
- autoescape output to prevent xss in generated html
- generate emails or reports from templates in java

## When to choose
- you are building a Java or Spring Boot application and need server-side HTML templating
- you want Twig/Jinja-like syntax with template inheritance on the JVM
- you need built-in autoescaping and i18n out of the box
- you want an extensible engine where custom tags, filters, and functions are easy to add

## When to avoid
- you need client-side or JavaScript templating
- your project is not on the JVM
- you need a logic-less template engine like Mustache
- you require extremely high-performance streaming rendering beyond typical template engine capabilities

## Facets
- artifact type: library
- maturity: active
- function: templating, web-framework, internationalization, security
- domain: web-development, backend, developer-tools
- platform: jvm
- tags: template-engine, twig-inspired, jinja-like, spring-boot-starter, autoescaping, template-inheritance, spring, maven

## Member repositories
- PebbleTemplates/pebble (main) score 90

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:56.667585+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-30T06:22:08.686166+00:00, confidence not recorded.
  - readme: https://github.com/PebbleTemplates/pebble (fetched 2026-08-28T04:03:56.667585+00:00, sha 91d7e2f04767)
  - homepage: https://pebbletemplates.io (fetched 2026-08-29T12:29:10.926823+00:00, sha 298e157b7a0f)
  - site_page: https://pebbletemplates.io/wiki/guide/installation (fetched 2026-08-29T12:29:10.935742+00:00, sha bca1fda18dc9)
  - site_page: https://pebbletemplates.io/changelog (fetched 2026-08-29T12:29:10.937765+00:00, sha d4703bb66f4b)
- Data as of 2026-08-30T08:39:29.467469+00:00.
