zpin-templates
Advanced tools
Comparing version 0.0.24 to 0.0.25
@@ -356,2 +356,3 @@ 'use strict'; | ||
var module = node.attribs.module; | ||
var page = node.attribs.page; | ||
var pageName = arr[2]; | ||
@@ -370,3 +371,3 @@ var config = fs.readFileSync(path.join(process.cwd(), "dist/config.json"), "utf-8"); | ||
} | ||
config.pages[pageName].containers.push({ src: src, appId: appId, module: module }); | ||
config.pages[pageName].containers.push({ src: src, appId: appId, module: module, page: page }); | ||
fs.writeFileSync(path.join(process.cwd(), "dist/config.json"), JSON.stringify(config)); | ||
@@ -373,0 +374,0 @@ } |
{ | ||
"name": "zpin-templates", | ||
"version": "0.0.24", | ||
"version": "0.0.25", | ||
"description": "Light weight templates for react -> write html get valid react code", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -374,2 +374,3 @@ 'use strict'; | ||
var module=node.attribs.module; | ||
var page=node.attribs.page; | ||
var pageName=arr[2]; | ||
@@ -388,3 +389,3 @@ var config=fs.readFileSync(path.join(process.cwd(),"dist/config.json"),"utf-8"); | ||
} | ||
config.pages[pageName].containers.push({src,appId,module}); | ||
config.pages[pageName].containers.push({src,appId,module,page}); | ||
fs.writeFileSync(path.join(process.cwd(),"dist/config.json"), JSON.stringify(config)) | ||
@@ -391,0 +392,0 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
277928
3717