catalog / engines

Template Engine

Render templates against data: interpolation, control flow, partials, escaping.

16 capabilities 1 sections reference specification

Build against it

# give your agent the catalog — no account, no install
claude mcp add provespec -- npx -y provespec-mcp

# then, from any agent session
spec_get(slug: "template-engine")                → the capability tree
spec_checklist(slug: "template-engine")          → the questions to answer
spec_grade(slug: "template-engine", grades: [...])  → parity % + the gap list

# or just fetch it
curl https://provespec.com/catalog/template-engine/spec.json

Grade every capability below as yes · partial · no · na, with a file reference as evidence. Whatever you leave ungraded counts as missing — the gap list is the work queue.

Or just paste this to your agent

Use the ProveSpec MCP server. Fetch the "template-engine" spec with
spec_get, then walk spec_checklist and grade this repository against it —
one verdict per capability, each with a file reference as the note.
Call spec_grade with the results and give me the gap list as the plan.

If the server is not registered, add it first:
  claude mcp add provespec -- npx -y provespec-mcp

The specification

AI 16

Syntax
  • Variable interpolation {{ name }} with dotted paths
  • Conditionals if / else if / else
  • Loops over collections for item in items with index and first/last flags
  • Comments stripped from output
  • Literal blocks that skip parsing raw
Composition
  • Include partials with their own context
  • Template inheritance extends / block
  • Macros or reusable components
Data
  • Filters and pipes {{ x | upper | truncate(10) }} chainable
  • Custom filters and globals registered by the host
Safety
  • Auto-escaping by context HTML by default explicit opt-out per expression
  • Missing variables are configurable empty or strict error
Errors
  • Parse errors report line and column
  • Runtime errors name the template and expression
Performance
  • Templates compile once and render many times
  • Loading from disk with caching invalidated on change in dev
Download spec.json All 53 specs