load method
load
Loads a template from a file.
Returns
An instance of Template class with loaded template.
def load(self, file_path):
...
| Parameter | Type | Description |
|---|---|---|
| file_path | System.String | The path to the file. |
Exceptions
| Exception | Description |
|---|---|
GroupDocsParserException |
The file does not represent the template in a valid format. |
load
Loads a template from a stream.
Returns
An instance of Template class with loaded template.
def load(self, stream):
...
| Parameter | Type | Description |
|---|---|---|
| stream | io.RawIOBase | The input stream. |
Exceptions
| Exception | Description |
|---|---|
GroupDocsParserException |
The stream does not represent the template in a valid format. |
See Also
- module
groupdocs.parser.templates - class
GroupDocsParserException - class
Template