Answer architecture round 4, stability round 3, product-owner round 3 and prose round 2: stdin trims JSON's own whitespace around any JSON value, the padded-JSON title names NewTemplate and the CLI, the JSON examples hold no backslash for echo, an argument's example is built only from a template or a valid reference and shell-quoted, the text scope of adding nothing, blank stdin, and the stdin decision in four paragraphs

This commit is contained in:
2026-10-07 21:43:04 +02:00
committed by Lillem4n
parent e5babf413d
commit 0de54c3b15
7 changed files with 69 additions and 49 deletions
+1 -1
View File
@@ -42,7 +42,7 @@ In [docs/decisions.md](docs/decisions.md):
- A struct tag is a template by its shape
- The CLI renders exactly the template on its stdin, and adds nothing
- A template that does not compile is misuse (exit 2), including a reference that resolves to nothing, save a lone reference under the CLI's `--format` until item 129
- A padded JSON template is rejected, not trimmed
- `NewTemplate` rejects a padded JSON template, and the CLI's stdin drops the whitespace around one
- `FakeTemplate` and `NewTemplate` both stay
- The shipped data is embedded, not discovered
- With only the shipped set, a category loads on the first call reaching it; beside a `--data-path`, every category loads in `New`