Demo
Readme
Changelog
Releases RSS Feed
Compatibility : nodejs and browser

Summary (version 3.2.4) Buy subsection module

This module adds a tag to include the headers and footers of an other docx document to create a new subsection

This module is available as part of the docxtemplater ENTREPRISE plan.

README

Subsection Module

This module exposes a tag to include subsection. The Subsection is added at the location of the {:subsection} tag.

Installation:

You will need docxtemplater v3: npm install docxtemplater

Install this module with npm install --save "$url"

Usage

Your docx should contain the text: {:subsection subdoc}.

After installing the module, you can use a working demo by running node sample.js.

At the place where you put the {:subsection subdoc} tag, a new page will be created and that page will have as headers and footers the same headers and footers as those found in the subdocument

CHANGELOG

3.2.4

  • Update browser build to use XMLSerializer instead of xmldom

  • Use requiredAPIVersion

3.2.3

  • Move docxtemplater from devDependencies to dependencies

Explanation : On some versions of npm (notably 5.8.0), when having a package containing docxtemplater-subsection-module, the installation will generate a tree of node_modules that puts the module on a level where it has no access to docxtemplater. By explicitly asking it as a dependency, this issue is avoided.

3.2.2

  • Make module compatible with docxtemplater version 3.5 and below.

Explanation : Recently, the scopemananger API (internal API) has changed, this new version of the footnotes module makes the module work with both versions newer than 3.6 and older than 3.6 of docxtemplater.

3.2.1

Make it possible to include the first section of a document having multiple sections.

3.2.0

  • Add support for being included by subtemplate module

  • Fix corruption for replacesection tag

3.1.1

Add meta context argument to custom parser with information about the tag for each types of tags

3.1.0

Add {:replacesection} tag that allows to replace a section instead of adding it.

3.0.3

Fix issue with multiple subsection tag in same document

3.0.2

Fix corruption with loop when the headers contain objects such as arrows

3.0.1

Fix corrupted document when the tag {:subsection} is not used in the document

3.0.0

Initial release

Edgar Hipp

I'm the creator of docxtemplater. I work on making docxtemplater great since 2013.