mirror of
https://github.com/lucaspalomodevelop/JSSTE.git
synced 2026-03-13 15:24:34 +00:00
some changes
This commit is contained in:
parent
b0e1d636eb
commit
aea8f9bbb4
@ -9,16 +9,17 @@ app.render = function(pagecode, templatecode) {
|
||||
pagecode = JSON.parse(pagecode);
|
||||
|
||||
//TODO
|
||||
if(templatecode === null)
|
||||
if(templatecode === null || templatecode == undefined)
|
||||
{
|
||||
templatecode == fs.readdirSync(pagecode["_TEMPLATE_"]);
|
||||
templatecode == fs.readFileSync(pagecode["_TEMPLATE_"]+".html");
|
||||
}
|
||||
|
||||
|
||||
for (var i in pagecode) {
|
||||
var value = undefined;
|
||||
|
||||
if(new RegExp("\d*_([A-Z])\w*_",i))
|
||||
var re = new RegExp("\d*_([A-Z])\w*_");
|
||||
if(re.test(i))
|
||||
continue;
|
||||
|
||||
value = pagecode[i].toString();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user