With the core Templates plugin I’m able to compose notes from multiple templates by using the Insert Template command. This works well with properties also.
So a template with tags: bananas and another one with tags: apples becomes a note with tags: apples, bananas.
But using Templaters Insert Template command results in Templater adding a second YAML to the note which breaks the note. That means I cannot compose notes from multiple templates if there is a frontmatter section present in both templates.
Is this just a shortcoming of the Templater plugin or am I doing something wrong?
After one template has been inserted, you’ve already got a file, and can’t treat as a new file anymore. This means that if you want to use another template on that file, you’ll need to use app.fileManager.processFrontMatter() to change the property/frontmatter section of that file. One way of doing this is exemplified in the post below: