feat: change default template suffix from .tera to .die#116
Merged
Conversation
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.
Deploying diecut with
|
| Latest commit: |
2b11e5c
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://c460d00e.diecut.pages.dev |
| Branch Preview URL: | https://feat-die-extension.diecut.pages.dev |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
templates_suffixfrom.terato.die, decoupling the template file extension from the Tera rendering engine (an implementation detail).dieextension references the physical diecutting tool — the shaped blade that stamps out the pattern — which maps to what templates actually do.terafiles and no explicittemplates_suffixautomatically fall back to.terawith a deprecation warning; templates that explicitly settemplates_suffix = ".tera"get no warning.dieTest plan
.terafallback triggers deprecation warning when suffix not explicitly settemplates_suffix = ".tera"produces no warning.diefiles defaults correctly with no warningscargo fmt --checkandcargo clippy -- -D warningsclean