obsidian-templater
Installation
SKILL.md
Templater template generation
Templater is an Obsidian plugin for dynamic note templates. Commands embedded in a template file run when the template is applied to a note, outputting results inline.
Core template syntax
| Tag | Behavior |
|---|---|
<% expression %> |
Outputs the result of the expression |
<%* code %> |
Executes JS code; no output by default |
<%+ expression %> |
Re-evaluated in preview mode (deprecated, avoid) |
<%- / -%> |
Trims one newline before/after the tag |
<%_ / _%> |
Trims all whitespace before/after the tag |
To output from a <%* %> execution block, append to the special tR string:
<%* tR += "some output" %>