简体   繁体   English

将值推入带有小胡子标记的Ms Word docx格式文档中?

[英]Pushing values into Ms Word docx format document with Mustache markup?

I have seen a script that allow mustache styled markup in a docx to be populated from code I cannot find such again. 我见过一个脚本,该脚本允许从docx中的胡子样式标记中填充无法再次找到的代码。 Does anyone know of such a script. 有谁知道这样的脚本。

Yep, docxgenjs does exactly that (I'm it's creator). 是的, docxgenjs正是这样做的(我是它的创建者)。

Here's a simple demo working on Chrome and Firefox: http://javascript-ninja.fr/docxgenjs/examples/demo.html 这是在Chrome和Firefox上运行的简单演示: http : //javascript-ninja.fr/docxgenjs/examples/demo.html

You can use it client-side on new browsers (not IE, sadly), or on server-side with node: https://github.com/edi9999/docxgenjs#node-installation-and-usage 您可以在新浏览器(而不是IE)上在客户端上使用它,也可以在带有节点的服务器端上使用它: https : //github.com/edi9999/docxgenjs#node-installation-and-usage

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM