
Introduction - Templater - GitHub Pages
Templater is a template language that lets you insert variables and functions results into your notes. It will also let you execute JavaScript code manipulating those variables and functions.
Syntax - Templater - GitHub Pages
Templater uses a custom templating engine (rusty_engine) syntax to declare a command. You may need a bit of time to get used to it, but once you get the idea, the syntax is not that hard.
User Scripts - Templater - GitHub Pages
Templater will load all JavaScript (.js files) scripts in the Scripts folder. You can then create your script named Scripts/my_script.js (the .js extension is required) for example.
Installation - Templater - GitHub Pages
Templater Installation You can install this plugin via the Community Plugins tab within Obsidian. Search for "Templater". It's a good practice to restart the Obsidian app after the installation of Templater, to …
tp.file - Templater - GitHub Pages
Templater File Module This module contains every internal function related to files. Documentation tp.file.content tp.file.create_new(template: TFile ⎮ string, filename?: string, open_new: boolean = …
Settings - Templater - GitHub Pages
Trigger Templater on new file creation: Templater will listen for the new file creation event, and, if it matches a rule you've set, replace every command it finds in the new file's content.
System Commands - Templater - GitHub Pages
Once this is done, Templater will create a user function named after what you defined, that will execute your system command and return its output. Just like internal functions, user functions are available …
tp.date - Templater - GitHub Pages
Templater Date Module This module contains every internal function related to dates. Documentation tp.date.now(format: string = "YYYY-MM-DD", offset?: number⎮string, reference?: string, …
tp.frontmatter - Templater - GitHub Pages
Templater Frontmatter Module This modules exposes all the frontmatter variables of a file as variables. Documentation tp.frontmatter.<frontmatter_variable_name> Examples Documentation …
User Functions - Templater - GitHub Pages
Templater User Functions You can define your own functions in Templater. There are two types of user functions you can use: Script User Functions System Command User Functions Invoking User …