This is a list of all templates I use to manage The Quantum Garden Vault.

  • I use Obsidian Templater plugin as my templating engine of choice
  • Templates are stored in /utilities/templates
  • Templates are prefixed with tmpl_
  • Templates call tmpl__base to include common properties. These may then be overwritten.

Timing is important

Sub-second delays are required to keep everything in order and prevent values from tmpl__base bleeding through when they are subsequently overwritten. The pattern is:

call the base template
call tp.hooks.on_all_templates_executed

wrap all processing in setTimeout with 200ms delay

tR trick

Calling tR = await tp.file.include("[[tmpl__base]]") has the effect of wiping anything generated by the template into the tR output variable so far. This includes the templates properties, listed in YAML. It means I can have properties that include the description, source code and created/modified dates for the template file to make management easier and generate the list below, but they do not form part of the final note’s production.

TemplateDescriptionSource on GIST
tmpl__baseBase include for all templates.code
tmpl__templateSets up a new template.code
tmpl_blogSets up a blog or now post.code
tmpl_cmdrs_logSets up a cmdrs_log postcode
tmpl_createdSet created to match the note’s original creation timecode
tmpl_modifiedSets the modified property to the current date and time.code