Drop the CLI's no-data hint, keep the number underflow rule in grammar/number.go, and name the JSON a template may be

This commit is contained in:
2026-10-08 12:28:52 +02:00
committed by Lillem4n
parent 295347a455
commit 9baa77c752
4 changed files with 13 additions and 23 deletions
+1 -1
View File
@@ -30,7 +30,7 @@ born {date(1990-01-01,2010-12-31,'2006-01-02')}
EOF
```
fejkdata renders the template on its stdin: a format string, or any JSON value. Its `{…}` tokens reach the data by reference from the root,
fejkdata renders the template on its stdin: a format string, or a JSON object, array, string or `null`. Its `{…}` tokens reach the data by reference from the root,
`{/sv_SE.person.last}`, so shipped and `--data-path` categories are alike available,
and everything outside them prints as written. A reference names a category, or a field
inside one: each dot segment descends one level — folders, then the category (a JSON