Skip to content

Jinja2

Bases: TemplateEngine

environment: Environment property

This property is used to get the environment of the template engine.

Returns (Environment): environment of the template engine

template(document, keywords)

This method is used to format a string using the format method.

Parameters:

  • document (str) –

    string that is formatted

  • keywords (Dict[str, Any]) –

    keywords that are used to format the string

Returns (str): formatted string