genWeb function
Implementation
void genWeb(String path) {
final webPath = '${path}/web';
genDir(webPath);
final cssPath = '${webPath}/css';
genDir(cssPath);
final cssImgPath = '${cssPath}/img';
genDir(cssImgPath);
final imgPath = '${webPath}/img';
genDir(imgPath);
final domainPath = '${webPath}/${domainName}';
genDir(domainPath);
final modelPath = '${domainPath}/${modelName}';
genDir(modelPath);
final domainModelWeb =
genFile('${modelPath}/${domainName}_${modelName}_web.dart');
genDomainModelWeb(domainModelWeb);
final domainModelWebHtml =
genFile('${modelPath}/${domainName}_${modelName}_web.html');
genDomainModelWebHtml(domainModelWebHtml);
final modelCssPath = '${modelPath}/css';
genDir(modelCssPath);
final layout = genFile('${modelCssPath}/layout.css');
genLayout(layout);
final layout2 = genFile('${modelCssPath}/layout2.css');
genLayout2(layout2);
final link = genFile('${modelCssPath}/link.css');
genLink(link);
final list = genFile('${modelCssPath}/list.css');
genList(list);
final menu = genFile('${modelCssPath}/menu.css');
genMenu(menu);
final page = genFile('${modelCssPath}/page.css');
genPage(page);
final table = genFile('${modelCssPath}/table.css');
genTable(table);
final modelCssImgPath = '${modelCssPath}/img';
genDir(modelCssImgPath);
final modelImgPath = '${modelPath}/img';
genDir(modelImgPath);
}