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):
    ...
| Parameter | Type | Description | 
|---|---|---|
| template | HTMLDocument | Source skeleton html doc. | 
| data | TemplateData | Data for merging (XML, JSON). | 
| options | aspose.html.loading.TemplateLoadOptions | Merging options object. | 
convert_template
Merge html template with user data. Result is HTMLDocument.
Returns
Conversion result HTMLDocument.
def convert_template(self, url, data, options):
    ...
| Parameter | Type | Description | 
|---|---|---|
| url | Url | Template source document URL. | 
| data | TemplateData | Data for merging (XML, JSON). | 
| options | aspose.html.loading.TemplateLoadOptions | Merging 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):
    ...
| Parameter | Type | Description | 
|---|---|---|
| source_path | str | Path to template source html file. It will be combined with the current directory path to form an absolute URL. | 
| data | TemplateData | Data for merging (XML, JSON). | 
| options | aspose.html.loading.TemplateLoadOptions | Merging options object. | 
convert_template
Merge html template with user data. Result is html file.
def convert_template(self, template, data, options, output_path):
    ...
| Parameter | Type | Description | 
|---|---|---|
| template | HTMLDocument | Source skeleton html doc. | 
| data | TemplateData | Data for merging (XML, JSON). | 
| options | aspose.html.loading.TemplateLoadOptions | Merging options object. | 
| output_path | str | Output file path. | 
convert_template
Merge html template with user data. Result is html file.
def convert_template(self, url, data, options, output_path):
    ...
| Parameter | Type | Description | 
|---|---|---|
| url | Url | Template source document URL. | 
| data | TemplateData | Data for merging (XML, JSON). | 
| options | aspose.html.loading.TemplateLoadOptions | Merging options object. | 
| output_path | str | Output file path. | 
convert_template
Merge html template with user data. Result is html file.
def convert_template(self, source_path, data, options, output_path):
    ...
| Parameter | Type | Description | 
|---|---|---|
| source_path | str | Path to template source html file. It will be combined with the current directory path to form an absolute URL. | 
| data | TemplateData | Data for merging (XML, JSON). | 
| options | aspose.html.loading.TemplateLoadOptions | Merging options object. | 
| output_path | str | Output 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):
    ...
| Parameter | Type | Description | 
|---|---|---|
| url | Url | Template source document URL. | 
| configuration | Configuration | The environment configuration. | 
| data | TemplateData | Data for merging (XML, JSON). | 
| options | aspose.html.loading.TemplateLoadOptions | Merging 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):
    ...
| Parameter | Type | Description | 
|---|---|---|
| source_path | str | Path to template source html file. It will be combined with the current directory path to form an absolute URL. | 
| configuration | Configuration | The environment configuration. | 
| data | TemplateData | Data for merging (XML, JSON). | 
| options | aspose.html.loading.TemplateLoadOptions | Merging 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):
    ...
| Parameter | Type | Description | 
|---|---|---|
| content | str | Inline html template - skeleton. | 
| base_url | str | Base URI of the html template. It will be combined with the current directory path to form an absolute URL. | 
| data | TemplateData | Data for merging (XML, JSON). | 
| options | aspose.html.loading.TemplateLoadOptions | Merging options object. | 
convert_template
Merge html template with user data. Result is html file.
def convert_template(self, url, configuration, data, options, output_path):
    ...
| Parameter | Type | Description | 
|---|---|---|
| url | Url | Template source document URL. | 
| configuration | Configuration | The environment configuration. | 
| data | TemplateData | Data for merging (XML, JSON). | 
| options | aspose.html.loading.TemplateLoadOptions | Merging options object. | 
| output_path | str | Output 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):
    ...
| Parameter | Type | Description | 
|---|---|---|
| source_path | str | Path to template source html file. It will be combined with the current directory path to form an absolute URL. | 
| configuration | Configuration | The environment configuration. | 
| data | TemplateData | Data for merging (XML, JSON). | 
| options | aspose.html.loading.TemplateLoadOptions | Merging options object. | 
| output_path | str | Output 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):
    ...
| Parameter | Type | Description | 
|---|---|---|
| content | str | Inline html template - skeleton. | 
| base_url | str | Base URI of the html template. It will be combined with the current directory path to form an absolute URL. | 
| data | TemplateData | Data for merging (XML, JSON). | 
| options | aspose.html.loading.TemplateLoadOptions | Merging options object. | 
| output_path | str | Output 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):
    ...
| Parameter | Type | Description | 
|---|---|---|
| content | str | Inline html template - skeleton. | 
| base_url | str | Base URI of the html template. It will be combined with the current directory path to form an absolute URL. | 
| configuration | Configuration | The environment configuration. | 
| data | TemplateData | Data for merging (XML, JSON). | 
| options | aspose.html.loading.TemplateLoadOptions | Merging 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):
    ...
| Parameter | Type | Description | 
|---|---|---|
| content | str | Inline html template - skeleton. | 
| base_url | str | Base URI of the html template. It will be combined with the current directory path to form an absolute URL. | 
| configuration | Configuration | The environment configuration. | 
| data | TemplateData | Data for merging (XML, JSON). | 
| options | aspose.html.loading.TemplateLoadOptions | Merging options object. | 
| output_path | str | Output file path. | 
See Also
- module aspose.html.converters
- class Converter
- class HTMLDocument