From ed801e1581cf2eacb3a8a28e2491df09e370929d Mon Sep 17 00:00:00 2001 From: Yang Jun Date: Sun, 26 Jul 2026 14:16:00 +0800 Subject: [PATCH] fix: restore --template CLI option Revert the positional-only template change. Keep --template as the primary API; stdin template remains unsupported without a special error. Co-authored-by: Cursor --- README.md | 2 +- bin/liquid.js | 4 ++-- docs/source/tutorials/setup.md | 14 +++++++------- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index bdda8ace2..d3f638c5f 100644 --- a/README.md +++ b/README.md @@ -46,7 +46,7 @@ npm install liquidjs **CLI** ```bash -npx liquidjs 'Hello, {{ name }}!' --context '{"name": "Liquid"}' +npx liquidjs --template 'Hello, {{ name }}!' --context '{"name": "Liquid"}' ``` See the [setup guide][setup] for partials, layouts, caching, and other options. diff --git a/bin/liquid.js b/bin/liquid.js index 41d932037..ceb0fdfa0 100755 --- a/bin/liquid.js +++ b/bin/liquid.js @@ -14,7 +14,7 @@ async function render () { program .name('liquidjs') .description('Render a Liquid template') - .argument('