Skip to content

feat: change default template suffix from .tera to .die#116

Merged
raiderrobert merged 1 commit into
mainfrom
feat/die-extension
Feb 24, 2026
Merged

feat: change default template suffix from .tera to .die#116
raiderrobert merged 1 commit into
mainfrom
feat/die-extension

Conversation

@raiderrobert

Copy link
Copy Markdown
Owner

Summary

  • Changes the default templates_suffix from .tera to .die, decoupling the template file extension from the Tera rendering engine (an implementation detail)
  • The .die extension references the physical diecutting tool — the shaped blade that stamps out the pattern — which maps to what templates actually do
  • Adds soft migration: templates with .tera files and no explicit templates_suffix automatically fall back to .tera with a deprecation warning; templates that explicitly set templates_suffix = ".tera" get no warning
  • Updates all docs and examples to use .die

Test plan

  • All existing tests pass (129 total)
  • New test: .tera fallback triggers deprecation warning when suffix not explicitly set
  • New test: explicit templates_suffix = ".tera" produces no warning
  • New test: new-style template with .die files defaults correctly with no warnings
  • cargo fmt --check and cargo clippy -- -D warnings clean

The .tera extension coupled the template format to a specific rendering
engine (Tera), which is an implementation detail. The new .die extension
is diecut's own — "die" being the shaped tool used in physical diecutting.

Existing templates using .tera files continue to work via soft migration:
when no templates_suffix is explicitly set and .tera files are detected,
diecut falls back to .tera and emits a deprecation warning. Templates
that explicitly set templates_suffix = ".tera" in diecut.toml get no
warning.
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying diecut with  Cloudflare Pages  Cloudflare Pages

Latest commit: 2b11e5c
Status: ✅  Deploy successful!
Preview URL: https://c460d00e.diecut.pages.dev
Branch Preview URL: https://feat-die-extension.diecut.pages.dev

View logs

@raiderrobert raiderrobert merged commit a4f8e1f into main Feb 24, 2026
5 checks passed
@raiderrobert raiderrobert deleted the feat/die-extension branch February 24, 2026 04:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant