closeout.domain_layer.services package

Submodules

closeout.domain_layer.services.generate_disposition_letters_service module

closeout.domain_layer.services.generate_prototype_project_service module

closeout.domain_layer.services.validate_template_service module

closeout.domain_layer.services.validate_template_service.validate_template(template_content: str) → Tuple[bool, Set[str]]

Validate that the provided template content has correct syntax

This function attempts to initialize a template renderer with the provided content to check for syntax errors, but does not attempt to render the template.

Parameters:

template_content – str representing a template

Returns:

A tuple containing (is_valid: bool, errors: Set[str]) where is_valid is True if no syntax errors were found, and errors is a set of error messages if any were found

Module contents