User`s guide
zipTemplate
11-111
root.html and your document part template library file, if it exists, is in a file called
docpart_templates.html.
zipTemplate(zippedTemplate,unzippedTemplateFolder,mainDocument,
partTemplates) zips the unzipped DOM template into the file specified by
zippedTemplate. Use this syntax when the unzipped template includes a document
part template library file whose file name is not docpart_templates.html. You must
specify mainDocument as the third argument, even if the main document file is called
report.html or root.html.
Examples
Zip to a File Whose Base Name is the Unzipped Template Folder
Zip the template myTemplate into a zip file called myTemplate.htmtx.
zipTemplate('myTemplate');
Zip to a Specified Zip File Name
Zip the template myTemplate into a zip file called myReportTemplate.htmtx.
zipTemplate('myReportTemplate.htmtx','myTemplate');
Zip When Main Document and Part Template File Use Custom Names
Zip a template whose main part is mainpart.html and whose part template library file
is documentpart_templates.html.
zipTemplate('myTemplate.htmx','myTemplate',...
'mainpart.html','documentpart_templates.html');
Input Arguments
unzippedTemplateFolder — Path to folder containing unzipped template
string
Path to folder containing unzipped template, specified as a string.
zippedTemplate — Path for zipped DOM template file
string