Installation

Node

To install docxtemplater, we recommend you to use npm.

npm install docxtemplater

If you want to use the command line interface, you should use the global flag, eg:

npm install docxtemplater -g

Browser

I recommend you to use the npm scripts I wrote (which can be found in the package.json).

git clone git@github.com:edi9999/docxtemplater.git && cd docxtemplater
npm install
npm run compile
# Optionally :
# npm run browserify
# npm run uglify:lib

Docxtemplater will be exported to window.Docxtemplater for easy usage (on some systems, it might export it in window.docxtemplater (see https://github.com/edi9999/docxtemplater/issues/118))

Your version of docxtemplater will be in /build (minified and non minified options) and already include all dependencies