diff --git a/demo/esm/README.md b/demo/esm/README.md index d70afb158..728473c32 100644 --- a/demo/esm/README.md +++ b/demo/esm/README.md @@ -1,4 +1,4 @@ -# LiquidJS for Node.js +# Using LiquidJS in ESM ## Get Started diff --git a/demo/express/README.md b/demo/express/README.md index 21f81a3a4..e436c79a5 100644 --- a/demo/express/README.md +++ b/demo/express/README.md @@ -1,4 +1,4 @@ -# LiquidJS for Express.js +# Using LiquidJS with Express.js ## Get Started diff --git a/demo/webpack/README.md b/demo/webpack/README.md new file mode 100644 index 000000000..13ed5b72f --- /dev/null +++ b/demo/webpack/README.md @@ -0,0 +1,10 @@ +# Using LiquidJS with Webpack + +## Get Started + +```bash +cd demo/nodejs +npm install +npm run build +npm start +``` \ No newline at end of file diff --git a/demo/webpack/layouts/html.liquid b/demo/webpack/layouts/html.liquid new file mode 100644 index 000000000..98bdac6be --- /dev/null +++ b/demo/webpack/layouts/html.liquid @@ -0,0 +1,7 @@ + +
+ + {% block %}{% endblock %} + {% render "footer.liquid" %} + + \ No newline at end of file diff --git a/demo/webpack/package.json b/demo/webpack/package.json new file mode 100644 index 000000000..f7dea7aa8 --- /dev/null +++ b/demo/webpack/package.json @@ -0,0 +1,18 @@ +{ + "name": "liquidjs-demo-nodejs", + "description": "Node.js demo for liquidjs", + "private": true, + "main": "dist/index.js", + "scripts": { + "start": "node dist/index.js", + "build": "webpack" + }, + "dependencies": { + "hello-liquid": "^1.0.0", + "liquidjs": "^9.28.3" + }, + "devDependencies": { + "webpack": "^5.74.0", + "webpack-cli": "^4.10.0" + } +} diff --git a/demo/webpack/partials/footer.liquid b/demo/webpack/partials/footer.liquid new file mode 100644 index 000000000..1ebe82b66 --- /dev/null +++ b/demo/webpack/partials/footer.liquid @@ -0,0 +1 @@ +{{title}} \ No newline at end of file diff --git a/demo/webpack/partials/todo.liquid b/demo/webpack/partials/todo.liquid new file mode 100644 index 000000000..d81a9f163 --- /dev/null +++ b/demo/webpack/partials/todo.liquid @@ -0,0 +1 @@ +