TemplaterApi.read_and_parse_template method
TemplaterApi › read_and_parse_template
Reads the config'stemplate_file and renders it, returning the resulting text.Signature:
read_and_parse_template(config: TemplaterRunningConfig): Promise<string>Parameters:
| Parameter | Type | Description |
|---|---|---|
| config | TemplaterRunningConfig | The {@link TemplaterRunningConfig} describing the render. Templater throws when its template_file is not a TFile. |
Returns: Promise<string> — A Promise resolving to the rendered text.