mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-15 04:10:40 -07:00
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:
@@ -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 `@-`:
|
||||
|
||||
Reference in New Issue
Block a user