...
|
...
|
@@ -149,6 +149,12 @@ var util = { |
|
|
});
|
|
|
}else if(/^console\.[^\(]+\([^\)*]\)$/.test(trim)){
|
|
|
return trim+";";
|
|
|
}else if(/^layout\s+/.test(trim)){
|
|
|
// var items=/^layout\s+(\w*)/.exec(trim);
|
|
|
var items=trim.split(/\s+/g);
|
|
|
items[2]=source[items[2]]||source;
|
|
|
console.error(items[2]);
|
|
|
return "result.push('"+util.__template2(document.getElementById(items[1]).innerHTML,items[2]).replace(/\n/g,'')+ "')";
|
|
|
}
|
|
|
else {
|
|
|
return "result.push(" + code + ")";
|
...
|
...
|
@@ -156,7 +162,7 @@ var util = { |
|
|
}
|
|
|
// var PARAMS={};
|
|
|
var OBJECT = /\.\w+|'.*'|".*"/g;
|
|
|
var KEYWORDS = 'for,if,else,each,as,console';
|
|
|
var KEYWORDS = 'for,if,else,each,as,console,layout';
|
|
|
var SPECHAR = /\W/g;
|
|
|
var NUMBER = /^\d[^,]*|,\d[^,]*/g;
|
|
|
|
...
|
...
|
|