feat!: remove --template CLI option

Template is positional-only; bare stdin template and --template/-t are both removed. Keep @- for template and --context.

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
Yang Jun
2026-07-28 00:01:15 +08:00
co-authored by Cursor
parent a87b5db66e
commit 8b39836357
3 changed files with 3 additions and 16 deletions
+1 -2
View File
@@ -53,11 +53,10 @@ Pre-built UMD bundles are also available:
## LiquidJS in CLI
LiquidJS can also be used to render a template directly from CLI using `npx`. Pass the template as a positional argument, or with `--template` / `-t`:
LiquidJS can also be used to render a template directly from CLI using `npx`. Pass the template as a positional argument:
```bash
npx liquidjs '{{"hello" | capitalize}}'
npx liquidjs --template '{{"hello" | capitalize}}'
```
You can either pass the template inline (as shown above), read it from a file with `@` followed by a path, or from `stdin` with `@-`: