isite 2025.1.20 → 2025.5.1

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 (2) hide show
  1. package/lib/parser.js +11 -0
  2. package/package.json +1 -1
package/lib/parser.js CHANGED
@@ -306,6 +306,17 @@ module.exports = function init(req, res, ____0, route) {
306
306
  name = name.replace('#', '');
307
307
  }
308
308
 
309
+ if (!path || !____0.isFileExistsSync(path)) {
310
+ let arr = name.split('/');
311
+ if (arr.length === 1) {
312
+ path = ____0.path.join(route.parserDir, 'site_files', ____0.path.extname(arr[0]).replace('.', ''), arr[0]);
313
+ } else if (arr.length === 2) {
314
+ path = ____0.path.join(route.parserDir, 'site_files', ____0.path.extname(arr[1]).replace('.', ''), arr[0], arr[1]);
315
+ } else if (arr.length === 3) {
316
+ path = ____0.path.join(route.parserDir, 'site_files', ____0.path.extname(arr[2]).replace('.', ''), arr[0], arr[1], arr[2]);
317
+ }
318
+ }
319
+
309
320
  if (!path || !____0.isFileExistsSync(path)) {
310
321
  let arr = name.split('/');
311
322
  if (arr.length === 1) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "isite",
3
- "version": "2025.01.20",
3
+ "version": "2025.05.01",
4
4
  "description": "Create High Level Multi-Language Web Site [Fast and Easy] ",
5
5
  "main": "index.js",
6
6
  "repository": {