GetTemplaterFunctionsParams
Parameters for getTemplaterFunctions.
Import:
import type { GetTemplaterFunctionsParams } from 'obsidian-dev-utils/obsidian/templater';Signature:
export interface GetTemplaterFunctionsParamsProperties
| Property | Type | Description |
|---|---|---|
| app | App | The Obsidian app instance. |
| shouldReuseCurrent? | boolean | Whether 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. |
| targetPathOrFile | PathOrFile | The file the generated functions should resolve against — what tp.file.* reports. |
Links to this page: