load method
Leave feedback
On this page
Loads a template from a file.
def load(cls, file_path):
...
| Parameter | Type | Description |
|---|---|---|
| file_path | str |
The path to the file. |
Returns: Template: An instance of Template class with loaded template.
| Raises | Description |
|---|---|
GroupDocsParserException |
The file does not represent the template in a valid format. |
Loads a template from a stream.
def load(cls, stream):
...
| Parameter | Type | Description |
|---|---|---|
| stream | io.RawIOBase |
The input stream. |
Returns: Template: An instance of Template class with loaded template.
| Raises | Description |
|---|---|
GroupDocsParserException |
The stream does not represent the template in a valid format. |
- class
Template
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.