Skip to content

GetTemplaterFunctionsParams

Parameters for getTemplaterFunctions.

Import:

import type { GetTemplaterFunctionsParams } from 'obsidian-dev-utils/obsidian/templater';

Signature:

export interface GetTemplaterFunctionsParams

Properties

PropertyTypeDescription
appAppThe Obsidian app instance.
shouldReuseCurrent?booleanWhether to return Templater's current_functions_object when it already has one, instead of generating a fresh object. Reuse is cheaper and gives the object of the render currently in flight; pass false to force a new one built for targetPathOrFile.
targetPathOrFilePathOrFileThe file the generated functions should resolve against — what tp.file.* reports.

Links to this page: