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.

Aliases

These names call load too, limited to the overloads listed.

Alias Accepts
load_file load_file(file_path)
load_string load_string(file_path)
load_stream load_stream(stream)
load_streams load_streams(stream)

See Also

On this page