Skip to content

resolveTemplaterApi

Gets Templater’s internal API, when Templater is installed, enabled and still the shape this library expects.

Import:

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

Signature:

function resolveTemplaterApi(app: App): TemplaterApi | null

Parameters:

ParameterTypeDescription
appAppThe Obsidian app instance.

Returns: TemplaterApi | null — The internal API, or null when Templater is not there to talk to.


Links to this page: