User`s guide

mlreportgen.dom.Template class
12-317
mlreportgen.dom.Template class
Package: mlreportgen.dom
Create document template
Description
Create a template for a document.
Construction
templateObj = Template() creates an HTML template named Untitleld.htmtx in
the current folder, using the DOM default HTML template.
templateObj = Template(templatePath) creates a default HTML template at the
specified location.
templateObj = Template(templatePath,type) creates a template of the specified
type (Microsoft Word or HTML).
templateObj = Template(templatePath,type,sourceTemplate) creates a copy
of the template at the specified location, based on the specified template type.
Input Arguments
templatePath — Path and name for the template
string
Full path of output file or folder for the template.
type — Type of output
'html' (default) | 'docx' | 'html-file'
Type of output, specified as 'html', 'docx' or 'html-file'.
'html'— HTML output as a zipped or unzipped folder containing the HTML
document text, image, style sheet, and JavaScript files