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 insetTimeoutwith 200ms delay
tR trick
Calling
tR = await tp.file.include("[[tmpl__base]]")has the effect of wiping anything generated by the template into thetRoutput 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.
| Template | Description | Source on GIST |
|---|---|---|
| tmpl__base | Base include for all templates. | code |
| tmpl__template | Sets up a new template. | code |
| tmpl_blog | Sets up a blog or now post. | code |
| tmpl_cmdrs_log | Sets up a cmdrs_log post | code |
| tmpl_created | Set created to match the note’s original creation time | code |
| tmpl_modified | Sets the modified property to the current date and time. | code |
