# emali-template-server **Repository Path**: brujie/emali-template-server ## Basic Information - **Project Name**: emali-template-server - **Description**: 邮箱模板生成服务 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-06-13 - **Last Updated**: 2024-06-13 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## 邮箱模板生成器 1.express 构建本地服务器 2.nodemon搭配ws实现静态页面的热更新 3.multer用于处理文件上传 国际化语言配置,目前只支持中英文,以及导入对应语言的html 可按下“~”进行导出操作,导出对应的英文html #### 对应js文件作用 baseLayout.js 定义公共的模板组件 helper.js 公共的模板组件,添加参数处理,与index.html 中的 languageMap配置进行结合使用 使用方式: 在html中使用{{ }}语法进行解析语言配置模块 helper中对于不同组件定义了名称,可以直接使用 {{ 组件名称 参数 }} 进行使用,以及传递参数 #### 完成导出 index.html 中 outputName为对应的导出文件名称 中文对应:dist/outputNameCn.html 英文对应:dist/outputNameEn.html