Skip to main content

Config Module

This module exposes Templater's running configuration.

This is mostly useful when writing scripts requiring some context informations.

Internal Variable / FunctionDescription
tp.config.template_fileThe TFile object representing the template file.
tp.config.target_fileThe TFile object representing the target file where the template will be inserted
tp.config.run_modeThe RunMode enumeration, representing the way Templater was launched (Create new from template, Append to active file, ...)