create-gardener 1.1.2 → 1.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/Readme.md CHANGED
@@ -63,7 +63,10 @@ src/
63
63
  │ ├── assets/ # original images
64
64
  │ ├── components/
65
65
  │ ├── gardener.js
66
- └── styles/
66
+ ├── styles/
67
+ │ └── frontendtemplate.ejs #starter file to create new page
68
+
69
+
67
70
 
68
71
  ├── frontendStatic/ # final static output (generated)
69
72
  └── tempfrontend/ # temporary build output (deleted after build)
@@ -103,12 +106,8 @@ pnpm run dev
103
106
  ## Image Optimization & Caching
104
107
 
105
108
  Gardener provides a **deterministic image optimization endpoint**.
109
+ put your images in ./src/frontend/assets and use /cache/[imagename]_[width]x[height].webp in img tag.
106
110
 
107
- ### Route
108
-
109
- ```
110
- GET /cache/:name
111
- ```
112
111
 
113
112
  ### Filename format
114
113
 
@@ -308,6 +307,7 @@ Creates an EJS page and registers a route.
308
307
 
309
308
  ⚠️ **Important**
310
309
 
310
+ * Gardener doesn't support <span>hi<span>rohan</span></span> use <span><span>hi</span><span>rohan</span></span> basically text node elements shouldn't have siblings.
311
311
  * `/addcomponent` and `/addpage` mutate files and routes
312
312
  * Intended for **local development only**
313
313
  * Do NOT expose publicly without authentication and sanitization
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "type": "git",
6
6
  "url": "https://github.com/ritishDas/gardener"
7
7
  },
8
- "version": "1.1.2",
8
+ "version": "1.1.3",
9
9
  "description": "A dom gardener converting dom elements into json and vice versa",
10
10
  "main": "index.js",
11
11
  "bin": {