框架重构

清除多余的业务
This commit is contained in:
橙子
2022-04-03 23:21:53 +08:00
parent f5fb2ea17b
commit f0d32af3c3
936 changed files with 213647 additions and 86 deletions

View File

@@ -0,0 +1,17 @@
var fs = require("fs");
var base = fs.readFileSync('base.html').toString();
['top','bottom'].forEach(function(v){
['left','right'].forEach(function(h){
['1','2','3','4','5'].forEach(function(t){
var text = fs.readFileSync('t' +t+'.html').toString();
var outFile = 'out/' + t +v.charAt(0) + h.charAt(0) + '.html';
var out = base
.replace(/\{\{\{t\}\}\}/g,text)
.replace(/\{\{v\}\}/g,v)
.replace(/\{\{h\}\}/g,h);
fs.writeFileSync(outFile, out);
});
});
});