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
| Name | Type | Description |
|---|---|---|
| src | string | The source template content or file path to be processed. |
| **kwargs | dict | A collection of keyword arguments representing the variables and data to be injected into the template context. |
Returns
| Type | Description |
|---|---|
string | The rendered content with all template variables and logic blocks resolved. |