convert_template method

convert_template

Merge html template with user data. Result is HTMLDocument.

Returns

Conversion result HTMLDocument.

def convert_template(self, template, data, options):
    ...
ParameterTypeDescription
templateHTMLDocumentSource skeleton html doc.
dataTemplateDataData for merging (XML, JSON).
optionsaspose.html.loading.TemplateLoadOptionsMerging options object.

convert_template

Merge html template with user data. Result is HTMLDocument.

Returns

Conversion result HTMLDocument.

def convert_template(self, url, data, options):
    ...
ParameterTypeDescription
urlUrlTemplate source document URL.
dataTemplateDataData for merging (XML, JSON).
optionsaspose.html.loading.TemplateLoadOptionsMerging options object.

convert_template

Merge html template with user data. Result is HTMLDocument.

Returns

Conversion result HTMLDocument.

def convert_template(self, source_path, data, options):
    ...
ParameterTypeDescription
source_pathstrPath to template source html file. It will be combined with the current directory path to form an absolute URL.
dataTemplateDataData for merging (XML, JSON).
optionsaspose.html.loading.TemplateLoadOptionsMerging options object.

convert_template

Merge html template with user data. Result is html file.

def convert_template(self, template, data, options, output_path):
    ...
ParameterTypeDescription
templateHTMLDocumentSource skeleton html doc.
dataTemplateDataData for merging (XML, JSON).
optionsaspose.html.loading.TemplateLoadOptionsMerging options object.
output_pathstrOutput file path.

convert_template

Merge html template with user data. Result is html file.

def convert_template(self, url, data, options, output_path):
    ...
ParameterTypeDescription
urlUrlTemplate source document URL.
dataTemplateDataData for merging (XML, JSON).
optionsaspose.html.loading.TemplateLoadOptionsMerging options object.
output_pathstrOutput file path.

convert_template

Merge html template with user data. Result is html file.

def convert_template(self, source_path, data, options, output_path):
    ...
ParameterTypeDescription
source_pathstrPath to template source html file. It will be combined with the current directory path to form an absolute URL.
dataTemplateDataData for merging (XML, JSON).
optionsaspose.html.loading.TemplateLoadOptionsMerging options object.
output_pathstrOutput file path.

convert_template

Merge html template with user data. Result is HTMLDocument.

Returns

Conversion result HTMLDocument.

def convert_template(self, url, configuration, data, options):
    ...
ParameterTypeDescription
urlUrlTemplate source document URL.
configurationConfigurationThe environment configuration.
dataTemplateDataData for merging (XML, JSON).
optionsaspose.html.loading.TemplateLoadOptionsMerging options object.

convert_template

Merge html template with user data. Result is HTMLDocument.

Returns

Conversion result HTMLDocument.

def convert_template(self, source_path, configuration, data, options):
    ...
ParameterTypeDescription
source_pathstrPath to template source html file. It will be combined with the current directory path to form an absolute URL.
configurationConfigurationThe environment configuration.
dataTemplateDataData for merging (XML, JSON).
optionsaspose.html.loading.TemplateLoadOptionsMerging options object.

convert_template

Merge html template with user data. Result is HTMLDocument.

Returns

Conversion result HTMLDocument.

def convert_template(self, content, base_url, data, options):
    ...
ParameterTypeDescription
contentstrInline html template - skeleton.
base_urlstrBase URI of the html template. It will be combined with the current directory path to form an absolute URL.
dataTemplateDataData for merging (XML, JSON).
optionsaspose.html.loading.TemplateLoadOptionsMerging options object.

convert_template

Merge html template with user data. Result is html file.

def convert_template(self, url, configuration, data, options, output_path):
    ...
ParameterTypeDescription
urlUrlTemplate source document URL.
configurationConfigurationThe environment configuration.
dataTemplateDataData for merging (XML, JSON).
optionsaspose.html.loading.TemplateLoadOptionsMerging options object.
output_pathstrOutput file path.

convert_template

Merge html template with user data. Result is html file.

def convert_template(self, source_path, configuration, data, options, output_path):
    ...
ParameterTypeDescription
source_pathstrPath to template source html file. It will be combined with the current directory path to form an absolute URL.
configurationConfigurationThe environment configuration.
dataTemplateDataData for merging (XML, JSON).
optionsaspose.html.loading.TemplateLoadOptionsMerging options object.
output_pathstrOutput file path.

convert_template

Merge html template with user data. Result is html file.

def convert_template(self, content, base_url, data, options, output_path):
    ...
ParameterTypeDescription
contentstrInline html template - skeleton.
base_urlstrBase URI of the html template. It will be combined with the current directory path to form an absolute URL.
dataTemplateDataData for merging (XML, JSON).
optionsaspose.html.loading.TemplateLoadOptionsMerging options object.
output_pathstrOutput file path.

convert_template

Merge html template with user data. Result is HTMLDocument.

Returns

Conversion result HTMLDocument.

def convert_template(self, content, base_url, configuration, data, options):
    ...
ParameterTypeDescription
contentstrInline html template - skeleton.
base_urlstrBase URI of the html template. It will be combined with the current directory path to form an absolute URL.
configurationConfigurationThe environment configuration.
dataTemplateDataData for merging (XML, JSON).
optionsaspose.html.loading.TemplateLoadOptionsMerging options object.

convert_template

Merge html template with user data. Result is html file.

def convert_template(self, content, base_url, configuration, data, options, output_path):
    ...
ParameterTypeDescription
contentstrInline html template - skeleton.
base_urlstrBase URI of the html template. It will be combined with the current directory path to form an absolute URL.
configurationConfigurationThe environment configuration.
dataTemplateDataData for merging (XML, JSON).
optionsaspose.html.loading.TemplateLoadOptionsMerging options object.
output_pathstrOutput file path.

See Also