Skip to content

TemplaterApi.read_and_parse_template method

TemplaterApi › read_and_parse_template

Reads the config's template_file and renders it, returning the resulting text.

Signature:

read_and_parse_template(config: TemplaterRunningConfig): Promise<string>

Parameters:

ParameterTypeDescription
configTemplaterRunningConfigThe {@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.