Skip to main content

templatize

No overview available.

def templatize(
src: string,
**kwargs: dict
) - > string

Processes a source string or file through a template engine to perform variable substitution and logic rendering.

Parameters

NameTypeDescription
srcstringThe source template content or file path to be processed.
**kwargsdictA collection of keyword arguments representing the variables and data to be injected into the template context.

Returns

TypeDescription
stringThe rendered content with all template variables and logic blocks resolved.