【文件属性】:
文件名称:easy-template-x:在Node或浏览器中从模板生成docx文档
文件大小:996KB
文件格式:ZIP
更新时间:2021-05-18 18:17:13
TypeScript
易模板x
在Node或浏览器中从模板生成docx文档。
范围解析
扩展名
社区扩展数据绑定扩展
模板处理程序选项
自定义标签定界符
高级语法和自定义解析器
支持的二进制格式
内部API
哲学
现有技术和动机
变更日志
节点示例
import * as fs from 'fs' ;
import { TemplateHandler } from 'easy-template-x' ;
// 1. read template file
const templateFile = fs . readFileSync ( 'myTemplate.docx' ) ;
// 2. process the template
const data = {
posts : [
{ author : 'Alon Bar' , text : 'Very important\ntex