load method

On this page

load

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.

load

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.

See Also

On this page