@t8n/ui 1.1.0 → 1.2.0

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.
Files changed (3) hide show
  1. package/index.js +2 -1
  2. package/package.json +1 -1
  3. package/titan.json +1 -1
package/index.js CHANGED
@@ -22,7 +22,8 @@ const memoryCache = Object.create(null);
22
22
  // Resolve paths relative to app/ ✅ FIXED
23
23
  // --------------------------------------------------
24
24
  function resolvePath(path) {
25
- return `app/${path.replace(/^\/+/, "")}`;
25
+ const root = "../app" || "."
26
+ return root + `/${path.replace(/^\/+/, "")}`;
26
27
  }
27
28
 
28
29
  // --------------------------------------------------
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@t8n/ui",
3
- "version": "1.1.0",
3
+ "version": "1.2.0",
4
4
  "description": "A lightweight HTML templating engine for TitanPL with file caching and variable interpolation.",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
package/titan.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@t8n/ui",
3
- "version": "1.1.0",
3
+ "version": "1.2.0",
4
4
  "main": "index.js",
5
5
  "description": "A lightweight HTML templating engine for TitanPL with file caching and variable interpolation.",
6
6
  "keywords": [