Skip to main content
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.13.2/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>