Docma Template Compilation¶
The compilation process is a build-time activity consisting of the following steps:
-
Validate the template configuration file.
-
Copy files from the template source to the template staging area, compiling any compilable files (e.g Markdown) to HTML in the process.
-
Import any files specified in the
importskey of the configuration file, compile as required and copy them to the template staging area. -
Zip up the contents of the template staging area to produce the compiled document template.
Note
The docma CLI also supports the option of saving the compiled template, uncompressed, into a local directory. This is primarily for development and testing.
There is (approximately) a one-to-one correspondence between files in the source directory and the compiled template. Directory structure is preserved.