Skip to content

Templater plugin integration

The Templater plugin integration facilitates the connection between static user interface elements and dynamic command execution within a note-taking environment. This is achieved by combining the functionality of a UI button plugin with the Templater plugin.

Functionality

The integration allows a button to trigger specific Templater commands, rather than standard actions like opening a hyperlink or inserting static text.^[200-ob-plugin-buttons.md, 200-學習OB__plugin__buttons.md]

This is accomplished by setting a specific parameter within the button's code block. By enabling templater true, the system interprets the button's defined action as a function that should invoke the Templater engine to process the request.^[200-ob-plugin-buttons.md, 200-學習OB__plugin__buttons.md]

Example Configuration

The following configuration demonstrates a button linked to an external repository that uses this integration: ^[200-ob-plugin-buttons.md, 200-學習OB__plugin__buttons.md]

name github-buttons
type link
action https://github.com/shabegom/buttons
templater true
color blue

Sources

^[200-ob-plugin-buttons.md, 200-學習OB__plugin__buttons.md]