Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/docxml/mod.ts>default#cloneAsEmptyTemplate

TypeScript (component) library for building and parsing a DOCX file
Latest
method default.prototype.cloneAsEmptyTemplate
import { default } from "https://deno.land/x/docxml@5.15.3/mod.ts";

Clone some reusable configuration to a new instance of Docx:

  • XML rendering rules
  • Settings
  • Default content types
  • Custom styles

Does not clone other things, like:

  • Not content
  • Not content type overrides
  • Not relationships (unless required for settings)
  • Not anything else either

Returns

Docx<PropsGeneric>