Skip to content

getTemplaterRenderTargetFile

Gets the file the innermost in-flight parseTemplate render is for.

Renders nest — a template may render another — so the calls form a stack and this reports the top of it. Outside any render it is null.

Import:

import { getTemplaterRenderTargetFile } from '@mnaoumov/obsidian-lib/templater';

Signature:

function getTemplaterRenderTargetFile(): TFile | null

Returns: TFile | null — The render target, or null when no render is in flight.


Links to this page: