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
Go to Latest
method default.prototype.cloneAsEmptyTemplate
import { default } from "https://deno.land/x/docxml@5.5.1/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
  • Not anything else either

Returns

Docx<PropsGeneric>