getTemplaterFunctions
Gets Templater’s functions object — the tp a template is evaluated against — so a caller can invoke tp.date.now(), tp.file.title and the rest outside a template.
Import:
import { getTemplaterFunctions } from 'obsidian-dev-utils/obsidian/templater';Signature:
function getTemplaterFunctions(params: GetTemplaterFunctionsParams): Promise<object>Parameters:
| Parameter | Type | Description |
|---|---|---|
params | GetTemplaterFunctionsParams | The GetTemplaterFunctionsParams. |
Returns: Promise<object> — A Promise resolving to the functions object.
Links to this page: