utilities
user_templates
Utilities to support safely rendering user-supplied templates
Raised when extended validation of a template fails.
Raised when a user-supplied template fails to render.
Was this page helpful?
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
prefect.server.utilities.user_templatesregister_user_template_filters register_user_template_filters(filters: dict[str, Any]) -> None
validate_user_template validate_user_template(template: str) -> None
matching_types_in_templates matching_types_in_templates(templates: list[str], types: set[str]) -> list[str]
maybe_template maybe_template(possible: str) -> bool
render_user_template render_user_template(template: str, context: dict[str, Any]) -> str
render_user_template_sync render_user_template_sync(template: str, context: dict[str, Any]) -> str
UserTemplateEnvironment TemplateSecurityError TemplateRenderError Was this page helpful?