render_jinja_template¶
kedro_dagster.utils.render_jinja_template(src, is_cookiecutter=False, **kwargs)
¶
Render a Jinja template from a file or string.
Parameters¶
| Name | Type | Description | Default |
|---|---|---|---|
src
|
str or Path
|
Path to the template file or template string. |
required |
is_cookiecutter
|
bool
|
Whether to use cookiecutter-style rendering. |
False
|
**kwargs
|
Any
|
Variables to pass to the template. |
{}
|
Returns¶
| Type | Description |
|---|---|
str
|
Rendered template as a string. |
See Also¶
kedro_dagster.utils.write_jinja_template :
Renders and writes a template to disk in one step.