Skip to content

Formatter

Bases: TemplateEngine

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