ALDashboard.validate_docx
CallAndDebugUndefined Objects
class CallAndDebugUndefined(DebugUndefined)
Handles Jinja2 undefined errors by printing the name of the undefined variable. Extended to handle callable methods.
__getitem__
type: ignore
get_jinja_errors
def get_jinja_errors(the_file: str) -> Optional[str]
Just try rendering the DOCX file as a Jinja2 template and catch any errors. Returns a string with the errors, if any.