resolveTemplaterPluginApi
Gets Templater’s templater object and editor handler, when Templater is installed, enabled and still the shape this library expects.
Import:
import { resolveTemplaterPluginApi } from '@mnaoumov/obsidian-lib/templater';Signature:
function resolveTemplaterPluginApi(app: App): TemplaterPluginApi | nullParameters:
| Parameter | Type | Description |
|---|---|---|
app |
App | The Obsidian app instance. |
Returns: TemplaterPluginApi | null — The pair, or null when Templater is not there to talk to.